Update flake.nix
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
];
|
||||
};
|
||||
|
||||
netboot = nixpkgs.lib.nixosSystem {
|
||||
netboot = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
|
||||
modules = [
|
||||
@@ -33,9 +33,21 @@
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user