From a98732d142fb45534d69e2d407fd6d821d17225c Mon Sep 17 00:00:00 2001 From: oqyude Date: Tue, 13 Oct 2026 03:34:54 +0300 Subject: [PATCH] fix(pxe-infra): actually include dhcp-range in the dnsmasq settings The previous commit computed `dhcpRange` in the let-block but never put it into the `base` attrset that becomes the dnsmasq settings. The value was dead code, the rendered conf had no dhcp-range line, dnsmasq still didnt open --- modules/pxe-infra/dhcp.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/pxe-infra/dhcp.nix b/modules/pxe-infra/dhcp.nix index e7c4447..7a7b67c 100644 --- a/modules/pxe-infra/dhcp.nix +++ b/modules/pxe-infra/dhcp.nix @@ -38,7 +38,7 @@ let # times out. The range is gated by the MAC filter # (dhcp-ignore=tag:!known) below, so unknown MACs never see a # lease, but the range must exist. - dhcp-range = + dhcpRange = if cfg.rangeStart != null && cfg.rangeEnd != null then [ "${cfg.rangeStart},${cfg.rangeEnd},${cfg.leaseTime}" ] # Default: the entire bridge subnet minus the host address. @@ -64,6 +64,9 @@ let log-facility = "-"; # Static reservations. dhcp-host = dhcpHostLines; + # Free pool — must be present for the DHCP server socket to + # open at all. See `dhcpRange` above for the default. + dhcp-range = dhcpRange; }; # Optional TFTP module on the same dnsmasq instance. Used to