Skip to content

Commit 42ac7b2

Browse files
committed
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=)
1 parent c520c08 commit 42ac7b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nixos/modules/system/boot/networkd.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,7 @@ let
10331033
"BootServerName"
10341034
"BootFilename"
10351035
"IPv6OnlyPreferredSec"
1036+
"PersistLeases"
10361037
])
10371038
(assertInt "PoolOffset")
10381039
(assertMinimum "PoolOffset" 0)
@@ -1047,6 +1048,7 @@ let
10471048
(assertValueOneOf "EmitRouter" boolValues)
10481049
(assertValueOneOf "EmitTimezone" boolValues)
10491050
(assertValueOneOf "BindToInterface" boolValues)
1051+
(assertValueOneOf "PersistLeases" boolValues)
10501052
];
10511053

10521054
sectionIPv6SendRA = checkUnitConfig "IPv6SendRA" [

0 commit comments

Comments
 (0)