bootable targets: drive, pxe
This commit is contained in:
parent
2d4cf0b147
commit
9c0e1c011a
11 changed files with 88 additions and 64 deletions
19
bootable/pxe.nix
Normal file
19
bootable/pxe.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ 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";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue