diff --git a/flake.nix b/flake.nix index 7a511a0..a80bfb0 100644 --- a/flake.nix +++ b/flake.nix @@ -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 diff --git a/hosts/iso/configuration.nix b/hosts/iso/configuration.nix new file mode 100644 index 0000000..6043317 --- /dev/null +++ b/hosts/iso/configuration.nix @@ -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 + ]; +} \ No newline at end of file