diff options
author | Jared Baur <jbaur@adobe.com> | 2022-07-25 15:02:25 -0700 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2022-07-26 04:11:33 +0200 |
commit | 777e914c20f0349d974092b9b35071c488f70bf0 (patch) | |
tree | 08e246836be4d92efaa8d75665b81a56c0424273 /nixos | |
parent | 13a2f5b6ba3bade79e87151cfabdd51b51fdecd3 (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.nix | 7 |
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" |