about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJared Baur <jbaur@adobe.com>2022-07-25 15:02:25 -0700
committerFranz Pletz <fpletz@fnordicwalking.de>2022-07-26 04:11:33 +0200
commit777e914c20f0349d974092b9b35071c488f70bf0 (patch)
tree08e246836be4d92efaa8d75665b81a56c0424273 /nixos
parent13a2f5b6ba3bade79e87151cfabdd51b51fdecd3 (diff)
nixos/systemd.network: Add `RequiredFamilyForOnline` to `linkConfig`
While writing a configuration, I found a usage for this field and
noticed it was missing when building the configuration.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/system/boot/networkd.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix
index 0336930b3ab7d..357c2bab993b5 100644
--- a/nixos/modules/system/boot/networkd.nix
+++ b/nixos/modules/system/boot/networkd.nix
@@ -452,6 +452,7 @@ let
           "AllMulticast"
           "Unmanaged"
           "RequiredForOnline"
+          "RequiredFamilyForOnline"
           "ActivationPolicy"
         ])
         (assertMacAddress "MACAddress")
@@ -471,6 +472,12 @@ let
           "enslaved"
           "routable"
         ]))
+        (assertValueOneOf "RequiredFamilyForOnline" [
+          "ipv4"
+          "ipv6"
+          "both"
+          "any"
+        ])
         (assertValueOneOf "ActivationPolicy" ([
           "up"
           "always-up"