From 1d2f491a791889e15e88e911baba7b87591fbd2f Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 14 Sep 2022 20:23:55 +0200 Subject: [PATCH] nixos-module/container/dhcp-server: add ignore-client-uids --- nix/nixos-module/container/dhcp-server.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix/nixos-module/container/dhcp-server.nix b/nix/nixos-module/container/dhcp-server.nix index 31c9cb9..29f566a 100644 --- a/nix/nixos-module/container/dhcp-server.nix +++ b/nix/nixos-module/container/dhcp-server.nix @@ -75,6 +75,10 @@ in subnet ${subnet4Net} netmask ${lib.netmasks.${toString subnet4Len}} { range ${dhcp.start} ${dhcp.end}; + + # always assign the same IP to the same MAC address. + # fixes changing IP for PXE clients. + ignore-client-uids true; } update-static-leases on;