about summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorMartin Weinelt <mweinelt@users.noreply.github.com>2022-08-26 08:17:46 +0200
committerGitHub <noreply@github.com>2022-08-26 08:17:46 +0200
commite7454ee38bc78f420db75c318c1cf5fe41137759 (patch)
tree7cac34f6641ed1da76f618e0bce9bcaf53e83470 /nixos/modules/system
parent57102926ce41eaf5151ec92a9100b919d2385985 (diff)
parent506cb62c4e4d7c97d862665233fba55f894177e4 (diff)
downloadnixlib-e7454ee38bc78f420db75c318c1cf5fe41137759.tar
nixlib-e7454ee38bc78f420db75c318c1cf5fe41137759.tar.gz
nixlib-e7454ee38bc78f420db75c318c1cf5fe41137759.tar.bz2
nixlib-e7454ee38bc78f420db75c318c1cf5fe41137759.tar.lz
nixlib-e7454ee38bc78f420db75c318c1cf5fe41137759.tar.xz
nixlib-e7454ee38bc78f420db75c318c1cf5fe41137759.tar.zst
nixlib-e7454ee38bc78f420db75c318c1cf5fe41137759.zip
Merge pull request #187444 from peigongdsd/test
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/networkd.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix
index 337d238f910d..be6c534d5c0d 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"