nixos/bootable/pxe.nix
2026-10-28 13:28:36 +09:00

19 lines
381 B
Nix

{ pkgs, ... }: {
boot = {
initrd = {
availableKernelModules = [ "nfsv4" ];
network.enable = true;
systemd.initrdBin = [ pkgs.nfs-utils ];
};
kernelParams = [ "ip=dhcp" ];
};
fileSystems."/" = {
device = "10.2.0.1:/";
fsType = "nfs4";
};
imports = [
./common.nix
./ethernet.nix
];
networking.hostName = "nixos-bootpxe";
}