21 lines
460 B
Nix
21 lines
460 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";
|
|
};
|
|
hardware.enableAllHardware = true;
|
|
imports = [
|
|
../common.nix
|
|
./ethernet.nix
|
|
];
|
|
networking.hostName = "nixos-pxeboot";
|
|
services.getty.autologinUser = "root";
|
|
}
|