From 90de9ee6892da32b9854e0b94c828ac97fdf9c45 Mon Sep 17 00:00:00 2001 From: peigongdsd Date: Fri, 19 Aug 2022 20:53:08 +0800 Subject: nixos/modules/system/boot/networkd.nix: added Group= option in sectionLink of systemd.networkd config see also: systemd.network(5) --- nixos/modules/system/boot/networkd.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nixos/modules/system') diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index 337d238f910d..f85ca49b19c8 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -451,6 +451,7 @@ let "Multicast" "AllMulticast" "Unmanaged" + "Group" "RequiredForOnline" "RequiredFamilyForOnline" "ActivationPolicy" @@ -463,6 +464,8 @@ let (assertValueOneOf "AllMulticast" boolValues) (assertValueOneOf "Promiscuous" boolValues) (assertValueOneOf "Unmanaged" boolValues) + (assertInt "Group") + (assertRange "Group" 0 2147483647) (assertValueOneOf "RequiredForOnline" (boolValues ++ [ "missing" "off" -- cgit 1.4.1 From 506cb62c4e4d7c97d862665233fba55f894177e4 Mon Sep 17 00:00:00 2001 From: peigongdsd Date: Fri, 19 Aug 2022 21:00:18 +0800 Subject: modified: nixos/modules/system/boot/networkd.nix --- nixos/modules/system/boot/networkd.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nixos/modules/system') diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index f85ca49b19c8..be6c534d5c0d 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -451,7 +451,7 @@ let "Multicast" "AllMulticast" "Unmanaged" - "Group" + "Group" "RequiredForOnline" "RequiredFamilyForOnline" "ActivationPolicy" @@ -464,8 +464,8 @@ let (assertValueOneOf "AllMulticast" boolValues) (assertValueOneOf "Promiscuous" boolValues) (assertValueOneOf "Unmanaged" boolValues) - (assertInt "Group") - (assertRange "Group" 0 2147483647) + (assertInt "Group") + (assertRange "Group" 0 2147483647) (assertValueOneOf "RequiredForOnline" (boolValues ++ [ "missing" "off" -- cgit 1.4.1