Update flake.nix
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user