This commit is contained in:
bogale 2026-09-21 23:34:50 +09:00
commit 2e60504041
3 changed files with 54 additions and 23 deletions

View file

@ -59,7 +59,26 @@
environment.systemPackages = with pkgs; [
sbctl
];
systemd.tmpfiles.rules = [ "d /srv/tftp 0755 root root -" ];
services = {
logind.settings.Login.HandleLidSwitch = "ignore";
dnsmasq = {
enable = true;
settings = {
enable-ra = true;
no-resolv = true;
cache-size = 1024;
bogus-priv = true;
enable-tftp = true;
interface = "enp1s0";
domain-needed = true;
tftp-root = "/srv/tftp";
dhcp-boot = "grubx64.efi";
dhcp-range = [ "10.2.0.2,10.2.255.254,12h"
"fc02::2,fc02::ffff:ffff:ffff:ffff,12h" ];
server = [ "1.0.0.1" "2606:4700:4700::1001"
"1.1.1.1" "2606:4700:4700::1111" ];
};
};
};
}