diff options
author | Leo Maroni <git@em0lar.de> | 2021-09-25 16:03:42 +0200 |
---|---|---|
committer | Leo Maroni <git@em0lar.de> | 2021-09-25 16:03:42 +0200 |
commit | e95a50a64b4061ab2cb0572ac493f841e7b65b14 (patch) | |
tree | de052785cabfbdb68c400ba27ab1fc61f63573c5 /nixos | |
parent | 88aaa95bfe74a1bb24ade8bea9828aea90050d63 (diff) | |
download | nixpkgs-e95a50a64b4061ab2cb0572ac493f841e7b65b14.tar nixpkgs-e95a50a64b4061ab2cb0572ac493f841e7b65b14.tar.gz nixpkgs-e95a50a64b4061ab2cb0572ac493f841e7b65b14.tar.bz2 nixpkgs-e95a50a64b4061ab2cb0572ac493f841e7b65b14.tar.lz nixpkgs-e95a50a64b4061ab2cb0572ac493f841e7b65b14.tar.xz nixpkgs-e95a50a64b4061ab2cb0572ac493f841e7b65b14.tar.zst nixpkgs-e95a50a64b4061ab2cb0572ac493f841e7b65b14.zip |
nixos/networkd: add ActivationPolicy option
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/system/boot/networkd.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index 1de58b3d2c4..bf254be1341 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -384,6 +384,7 @@ let "AllMulticast" "Unmanaged" "RequiredForOnline" + "ActivationPolicy" ]) (assertMacAddress "MACAddress") (assertByteFormat "MTUBytes") @@ -402,6 +403,14 @@ let "enslaved" "routable" ])) + (assertValueOneOf "ActivationPolicy" ([ + "up" + "always-up" + "manual" + "always-down" + "down" + "bound" + ])) ]; sectionNetwork = checkUnitConfig "Network" [ |