summary refs log tree commit diff
path: root/nixos/modules/system/boot/networkd.nix
diff options
context:
space:
mode:
authorign0tus <ign0tus@posteo.de>2023-09-28 17:04:35 +0200
committerign0tus <ign0tus@posteo.de>2023-09-28 17:04:35 +0200
commit237f7ba7d2b2be46049e3327eb8208b5ac450940 (patch)
tree62ca872974d28715a3a64ba845ef1a8e43b94f1d /nixos/modules/system/boot/networkd.nix
parentd76e8633bfe92a60e59aa1b4074c65f0bee436a9 (diff)
downloadnixpkgs-237f7ba7d2b2be46049e3327eb8208b5ac450940.tar
nixpkgs-237f7ba7d2b2be46049e3327eb8208b5ac450940.tar.gz
nixpkgs-237f7ba7d2b2be46049e3327eb8208b5ac450940.tar.bz2
nixpkgs-237f7ba7d2b2be46049e3327eb8208b5ac450940.tar.lz
nixpkgs-237f7ba7d2b2be46049e3327eb8208b5ac450940.tar.xz
nixpkgs-237f7ba7d2b2be46049e3327eb8208b5ac450940.tar.zst
nixpkgs-237f7ba7d2b2be46049e3327eb8208b5ac450940.zip
networkd: Allow combinations of WakeOnLan policies
To comply with the systemd.link WakeOnLan[^1] specification, the option
"off" and all other possible policy combinations must be allowed.

[^1]: https://www.freedesktop.org/software/systemd/man/systemd.link.html#WakeOnLan=
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 238c6670ea0..d203038dc32 100644
--- a/nixos/modules/system/boot/networkd.nix
+++ b/nixos/modules/system/boot/networkd.nix
@@ -83,7 +83,7 @@ let
         (assertByteFormat "BitsPerSecond")
         (assertValueOneOf "Duplex" ["half" "full"])
         (assertValueOneOf "AutoNegotiation" boolValues)
-        (assertValueOneOf "WakeOnLan" ["phy" "unicast" "multicast" "broadcast" "arp" "magic" "secureon" "off"])
+        (assertValuesSomeOfOr "WakeOnLan" ["phy" "unicast" "multicast" "broadcast" "arp" "magic" "secureon"] "off")
         (assertValueOneOf "Port" ["tp" "aui" "bnc" "mii" "fibre"])
         (assertValueOneOf "ReceiveChecksumOffload" boolValues)
         (assertValueOneOf "TransmitChecksumOffload" boolValues)