From 42ac7b2428fc0895ebf1809d62b9ef47a2686258 Mon Sep 17 00:00:00 2001 From: Matt Perlman Date: Sat, 2 Nov 2024 12:53:02 -0400 Subject: [PATCH] nixos/networkd: add dhcpServerConfig.PersistLeases option PersistLeases was added to networkd version 256 (https://www.freedesktop.org/software/systemd/man/latest/systemd.network.html#PersistLeases=) --- nixos/modules/system/boot/networkd.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index 130d6098b1e2..94843747ea9d 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -1033,6 +1033,7 @@ let "BootServerName" "BootFilename" "IPv6OnlyPreferredSec" + "PersistLeases" ]) (assertInt "PoolOffset") (assertMinimum "PoolOffset" 0) @@ -1047,6 +1048,7 @@ let (assertValueOneOf "EmitRouter" boolValues) (assertValueOneOf "EmitTimezone" boolValues) (assertValueOneOf "BindToInterface" boolValues) + (assertValueOneOf "PersistLeases" boolValues) ]; sectionIPv6SendRA = checkUnitConfig "IPv6SendRA" [