1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

nixos/routnerr-2: fix network DHCP settings

This commit is contained in:
Matt Layher 2022-12-18 18:07:07 -05:00
parent 315565a0ba
commit aeda9981aa

View file

@ -43,8 +43,11 @@ let
# DHCPServer on NixOS does not support Boot options yet.
extraConfig = ''
[DHCPServer]
DefaultLeaseTimeSec = 86400;
MaxLeaseTimeSec = 86400;
PoolOffset = 50
DNS = ${vars.domain}
EmitDNS = true
DNS = _server_address
BootServerAddress = 192.168.${toString id}.1
BootFilename = netboot.xyz.kpxe
'';
@ -170,8 +173,11 @@ in {
# DHCPServer on NixOS does not support Boot options yet.
extraConfig = ''
[DHCPServer]
DefaultLeaseTimeSec = 86400;
MaxLeaseTimeSec = 86400;
PoolOffset = 50
DNS = ${vars.domain}
EmitDNS = true
DNS = _server_address
BootServerAddress = 192.168.1.1
BootFilename = netboot.xyz.kpxe
'';