Update flake.nix

This commit is contained in:
2026-06-02 10:32:14 +00:00
parent bf0d980e6d
commit 655865e77a
+14 -2
View File
@@ -23,7 +23,7 @@
]; ];
}; };
netboot = nixpkgs.lib.nixosSystem { netboot = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [
@@ -33,9 +33,21 @@
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;