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