From a0478e9e443c4c6330d5c21b1e6cfd6ff5473956 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Tue, 24 Mar 2026 14:23:19 +0000 Subject: [PATCH] nixos/systemd-networkd: Add missing options to VLAN --- nixos/modules/system/boot/networkd.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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)