diff --git a/flake.nix b/flake.nix index 4d2f32a..62fd2fa 100644 --- a/flake.nix +++ b/flake.nix @@ -23,19 +23,31 @@ ]; }; - netboot = nixpkgs.lib.nixosSystem { - inherit system; +netboot = nixpkgs.lib.nixosSystem { + inherit system; - modules = [ - ./installer.nix + modules = [ + ./installer.nix - ({ modulesPath, ... }: { - imports = [ - (modulesPath + "/installer/netboot/netboot-minimal.nix") - ]; - }) - ]; - }; + ({ modulesPath, ... }: { + imports = [ + (modulesPath + "/installer/netboot/netboot-minimal.nix") + ]; + + # 🔥 critical: prevent ISO/live media assumptions + boot.supportedFilesystems = [ "tmpfs" "vfat" "ext4" ]; + boot.kernelParams = [ + "ip=dhcp" + ]; + + # optional but helps avoid root confusion + fileSystems."/" = { + device = "tmpfs"; + fsType = "tmpfs"; + }; + }) + ]; +}; in { packages.default = iso;