diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index c8dadd09e9ce..413429f582de 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -291,13 +291,20 @@ let sectionVLAN = checkUnitConfig "VLAN" [ (assertOnlyFields [ "Id" + "Protocol" "GVRP" "MVRP" "LooseBinding" "ReorderHeader" + "EgressQOSMaps" + "IngressQOSMaps" ]) (assertInt "Id") (assertRange "Id" 0 4094) + (assertValueOneOf "Protocol" [ + "802.1q" + "802.1ad" + ]) (assertValueOneOf "GVRP" boolValues) (assertValueOneOf "MVRP" boolValues) (assertValueOneOf "LooseBinding" boolValues)