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