From 9bfad2364a1313400fdfd1b183df4e57813219b5 Mon Sep 17 00:00:00 2001 From: osbm Date: Mon, 27 Jan 2025 15:43:02 +0300 Subject: [PATCH] finally my custom iso --- flake.nix | 6 ++++++ hosts/iso/configuration.nix | 31 +++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 hosts/iso/configuration.nix 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