diff options
author | Karel Kočí <cynerd@email.cz> | 2024-04-05 09:40:38 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2024-04-05 09:40:38 +0200 |
commit | 5a367139ad660808366a941de1e42a72c1606ce6 (patch) | |
tree | 540818637ee58fa41f55efdd0e6f6322af9e0a7f /nixos/modules/wifi-spt.nix | |
parent | a9738a94e009610163e3c49e9686c12051917af7 (diff) | |
download | nixos-personal-5a367139ad660808366a941de1e42a72c1606ce6.tar.gz nixos-personal-5a367139ad660808366a941de1e42a72c1606ce6.tar.bz2 nixos-personal-5a367139ad660808366a941de1e42a72c1606ce6.zip |
Multiple improvements
Diffstat (limited to 'nixos/modules/wifi-spt.nix')
-rw-r--r-- | nixos/modules/wifi-spt.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/nixos/modules/wifi-spt.nix b/nixos/modules/wifi-spt.nix index 11554a7..669439d 100644 --- a/nixos/modules/wifi-spt.nix +++ b/nixos/modules/wifi-spt.nix @@ -102,7 +102,7 @@ in { mode = "wpa2-sha256"; wpaPasswordFile = "/run/secrets/hostapd-TurrisRules.pass"; }; - settings = { + settings = mkIf is2g { ieee80211w = 0; wpa_key_mgmt = mkForce "WPA-PSK"; # force use without sha256 }; @@ -123,7 +123,10 @@ in { systemd.network.networks = mkMerge [ (mkIf (cnf.ar9287.interface != null) { "lan-${cnf.ar9287.interface}" = { - matchConfig.Name = cnf.ar9287.interface; + matchConfig = { + Name = cnf.ar9287.interface; + WLANInterfaceType = "ap"; + }; networkConfig.Bridge = "brlan"; bridgeVLANs = [ { @@ -149,7 +152,10 @@ in { }) (mkIf (cnf.qca988x.interface != null) { "lan-${cnf.qca988x.interface}" = { - matchConfig.Name = cnf.qca988x.interface; + matchConfig = { + Name = cnf.qca988x.interface; + WLANInterfaceType = "ap"; + }; networkConfig.Bridge = "brlan"; bridgeVLANs = [ { |