From d5e7f6a6135e2ee4395122a93bc22f389dc4a06b Mon Sep 17 00:00:00 2001 From: Philippe Schaaf Date: Tue, 2 Aug 2022 13:36:01 +0200 Subject: [PATCH] add Promiscuous as valid value for linkConfig configuring a network via `systemd.network.networks..linkConfig` does not allow to set the attr Promiscuous = "true"; This referes to: https://www.freedesktop.org/software/systemd/man/systemd.network.html#Promiscuous= Signed-off-by: Philippe Schaaf --- nixos/modules/system/boot/networkd.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index 3511351443b7..b006ce77454f 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -454,12 +454,14 @@ let "RequiredForOnline" "RequiredFamilyForOnline" "ActivationPolicy" + "Promiscuous" ]) (assertMacAddress "MACAddress") (assertByteFormat "MTUBytes") (assertValueOneOf "ARP" boolValues) (assertValueOneOf "Multicast" boolValues) (assertValueOneOf "AllMulticast" boolValues) + (assertValueOneOf "Promiscuous" boolValues) (assertValueOneOf "Unmanaged" boolValues) (assertValueOneOf "RequiredForOnline" (boolValues ++ [ "missing"