finally my custom iso
This commit is contained in:
parent
a83c99b2a5
commit
9bfad2364a
2 changed files with 37 additions and 0 deletions
|
|
@ -127,6 +127,12 @@
|
|||
raspberry-pi-nix.nixosModules.sd-image
|
||||
];
|
||||
};
|
||||
myISO = nixpkgs.lib.nixosSystem {
|
||||
modules = [
|
||||
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-graphical-calamares-plasma6.nix"
|
||||
./hosts/iso/configuration.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
homeConfigurations = {
|
||||
# doesnt work because my different systems have different stateVersions
|
||||
|
|
|
|||
31
hosts/iso/configuration.nix
Normal file
31
hosts/iso/configuration.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
system,
|
||||
...
|
||||
}: {
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
# Set environment variable for allowing non-free packages
|
||||
environment.sessionVariables = {
|
||||
NIXPKGS_ALLOW_UNFREE = "1";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||
git
|
||||
curl
|
||||
parted
|
||||
nano
|
||||
comma
|
||||
just
|
||||
age
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue