diff options
author | Karel Kočí <cynerd@email.cz> | 2025-01-19 21:08:54 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2025-01-19 21:08:54 +0100 |
commit | 49499f75055ce669a439ecdcd964ad64cb591fd9 (patch) | |
tree | 36007fdb24cb181dfd7f894e15ce4089300fc22c /nixos | |
parent | 390c8c66a1b06498382a2d1acef0659eaf6fdae5 (diff) | |
download | nixos-personal-49499f75055ce669a439ecdcd964ad64cb591fd9.tar.gz nixos-personal-49499f75055ce669a439ecdcd964ad64cb591fd9.tar.bz2 nixos-personal-49499f75055ce669a439ecdcd964ad64cb591fd9.zip |
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.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/wifi-adm.nix | 10 |
1 files changed, 8 insertions, 2 deletions
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 = [ { |