From 49499f75055ce669a439ecdcd964ad64cb591fd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 19 Jan 2025 21:08:54 +0100 Subject: nixos/wifi-adm: correctly configure wifi This is required because networkd would otherwise try to configure the interface when it can't be included in the bridge. --- nixos/modules/wifi-adm.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'nixos/modules/wifi-adm.nix') diff --git a/nixos/modules/wifi-adm.nix b/nixos/modules/wifi-adm.nix index 7d6b5a6..63dc19a 100644 --- a/nixos/modules/wifi-adm.nix +++ b/nixos/modules/wifi-adm.nix @@ -91,7 +91,10 @@ in { }; systemd.network.networks = { "lan-${cnf.ar9287.interface}" = { - matchConfig.Name = cnf.ar9287.interface; + matchConfig = { + Name = cnf.ar9287.interface; + WLANInterfaceType = "ap"; + }; networkConfig.Bridge = "brlan"; bridgeVLANs = [ { @@ -121,7 +124,10 @@ in { ]; }; "lan-${cnf.qca988x.interface}" = { - matchConfig.Name = cnf.qca988x.interface; + matchConfig = { + Name = cnf.qca988x.interface; + WLANInterfaceType = "ap"; + }; networkConfig.Bridge = "brlan"; bridgeVLANs = [ { -- cgit v1.2.3