summary refs log tree commit diff
path: root/nixos/modules/system/boot/networkd.nix
diff options
context:
space:
mode:
authorDustin Frisch <fooker@lab.sh>2019-11-06 13:12:34 +0100
committerDustin Frisch <fooker@lab.sh>2019-11-06 13:12:34 +0100
commit0aeaf4dfe05380c103285e3168b6e91e28bd04d6 (patch)
tree3117ce6a0c16c26a389d90884734fd18bd4866ce /nixos/modules/system/boot/networkd.nix
parentb508ecb6ef9b094516bfa92d201f357279fe9aa9 (diff)
downloadnixpkgs-0aeaf4dfe05380c103285e3168b6e91e28bd04d6.tar
nixpkgs-0aeaf4dfe05380c103285e3168b6e91e28bd04d6.tar.gz
nixpkgs-0aeaf4dfe05380c103285e3168b6e91e28bd04d6.tar.bz2
nixpkgs-0aeaf4dfe05380c103285e3168b6e91e28bd04d6.tar.lz
nixpkgs-0aeaf4dfe05380c103285e3168b6e91e28bd04d6.tar.xz
nixpkgs-0aeaf4dfe05380c103285e3168b6e91e28bd04d6.tar.zst
nixpkgs-0aeaf4dfe05380c103285e3168b6e91e28bd04d6.zip
nixos/networkd: Add more valid values for RequiredForOnline
`RequiredForOnline` allows for a boolean value or operational state.
This adds the values for all valid the operational states.
Diffstat (limited to 'nixos/modules/system/boot/networkd.nix')
-rw-r--r--nixos/modules/system/boot/networkd.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix
index 85a106527fe..f3fdb2fbbfd 100644
--- a/nixos/modules/system/boot/networkd.nix
+++ b/nixos/modules/system/boot/networkd.nix
@@ -276,7 +276,7 @@ let
     (assertValueOneOf "ARP" boolValues)
     (assertValueOneOf "Multicast" boolValues)
     (assertValueOneOf "Unmanaged" boolValues)
-    (assertValueOneOf "RequiredForOnline" boolValues)
+    (assertValueOneOf "RequiredForOnline" (boolValues ++ ["off" "no-carrier" "dormant" "degraded-carrier" "carrier" "degraded" "enslaved" "routable"]))
   ];