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

View file

@ -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";
}