From 39c7b58406058af173acc1f11e70973eefd19c79 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 2 Jul 2025 17:52:05 +0200 Subject: [PATCH] feat: add iso installer target (to be completed..) --- flake.nix | 6 ++++++ hosts/iso/configuration.nix | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 hosts/iso/configuration.nix diff --git a/flake.nix b/flake.nix index 8a4b943..bfb1375 100644 --- a/flake.nix +++ b/flake.nix @@ -64,6 +64,12 @@ ./hosts/work/hardware-configuration.nix ]; }; + iso-installer = nixpkgs.lib.nixosSystem { + specialArgs = { inherit inputs system; }; + modules = [ + ./hosts/iso/configuration.nix + ]; + }; }; homeConfigurations = { "xmorel@work-laptop" = inputs.home-manager.lib.homeManagerConfiguration { diff --git a/hosts/iso/configuration.nix b/hosts/iso/configuration.nix new file mode 100644 index 0000000..d32e274 --- /dev/null +++ b/hosts/iso/configuration.nix @@ -0,0 +1,7 @@ +{ pkgs, modulesPath, system, ... }: +{ + imports = [ + "${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix" + ]; + nixpkgs.hostPlatform = system; +}