diff --git a/flake.nix b/flake.nix index 48d844c..1d4ac2b 100644 --- a/flake.nix +++ b/flake.nix @@ -80,6 +80,17 @@ # Servers conseil = commonSystem "conseil"; fant0mib0t = commonSystem "fant0mib0t"; + + # Installer + # nix build --no-link --print-out-paths ".#installer" + installer = nixpkgs.lib.nixosSystem { + inherit system; + modules = [ + ./modules/installer.nix + ]; + }; + }; + installer = self.outputs.nixosConfigurations.installer.config.system.build.isoImage; }; } diff --git a/modules/installer.nix b/modules/installer.nix new file mode 100644 index 0000000..c708e5b --- /dev/null +++ b/modules/installer.nix @@ -0,0 +1,35 @@ +{ + lib, + modulesPath, + pkgs, + ... +}: +{ + imports = [ + (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix") + ]; + networking = { + hostName = "fantomitechn-installer"; + wireless = { + enable = lib.mkForce false; + iwd.enable = true; + }; + }; + + environment.systemPackages = with pkgs; [ + btop + curl + dig + duf + ]; + + nix = { + settings.experimental-features = [ + "nix-command" + "flakes" + ]; + }; + time.timeZone = "Europe/Paris"; + i18n.defaultLocale = "en_US.UTF-8"; + system.stateVersion = "26.05"; +}