Update flake.nix

This commit is contained in:
2026-06-02 10:32:14 +00:00
parent bf0d980e6d
commit 655865e77a
+23 -11
View File
@@ -23,19 +23,31 @@
]; ];
}; };
netboot = nixpkgs.lib.nixosSystem { netboot = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [
./installer.nix ./installer.nix
({ modulesPath, ... }: { ({ modulesPath, ... }: {
imports = [ imports = [
(modulesPath + "/installer/netboot/netboot-minimal.nix") (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 { in {
packages.default = iso; packages.default = iso;