bootable targets: drive, pxe

This commit is contained in:
bogale 2026-10-28 13:28:36 +09:00
commit 9c0e1c011a
11 changed files with 88 additions and 64 deletions

19
bootable/pxe.nix Normal file
View 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";
}