aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2023-01-30 11:53:34 +0100
committerKarel Kočí <cynerd@email.cz>2023-01-30 11:53:34 +0100
commit4f809fde1bd8409046615c48d8ffbe06db7c40d0 (patch)
tree87cb3ff7e216dc88461bd3c0a078c30fdbbceb07 /nixos
parent10a262f7ef4cce5660465ce11da4097f9c987b39 (diff)
downloadnixos-personal-4f809fde1bd8409046615c48d8ffbe06db7c40d0.tar.gz
nixos-personal-4f809fde1bd8409046615c48d8ffbe06db7c40d0.tar.bz2
nixos-personal-4f809fde1bd8409046615c48d8ffbe06db7c40d0.zip
nixos/spt-omnia: use wifiAP over direct configuration
Diffstat (limited to 'nixos')
-rw-r--r--nixos/machine/spt-omnia.nix34
1 files changed, 5 insertions, 29 deletions
diff --git a/nixos/machine/spt-omnia.nix b/nixos/machine/spt-omnia.nix
index 2917332..e5d8873 100644
--- a/nixos/machine/spt-omnia.nix
+++ b/nixos/machine/spt-omnia.nix
@@ -12,6 +12,11 @@ with lib; {
wan = "pppoe-wan";
lanIP = config.cynerd.hosts.spt.omnia;
};
+ wifiAP.spt = {
+ enable = true;
+ ar9287.interface = "wlp3s0";
+ qca988x.interface = "wlp2s0";
+ };
openvpn.oldpersonal = true;
};
@@ -42,35 +47,6 @@ with lib; {
brlan.interfaces = ["lan0" "lan1" "lan2" "lan3" "lan4"];
};
- networking.wirelessAP = {
- enable = true;
- environmentFile = "/run/secrets/hostapd.env";
- interfaces = {
- "wlp2s0" = {
- countryCode = "CZ";
- hwMode = "a";
- channel = 36;
- ieee80211ac = true;
- ht_capab = ["HT40+" "LDPC" "SHORT-GI-20" "SHORT-GI-40" "TX-STBC" "RX-STBC1" "MAX-AMSDU-7935" "DSSS_CCK-40"];
- vht_capab = ["RXLDPC" "SHORT-GI-80" "TX-STBC-2BY1" "RX-ANTENNA-PATTERN" "TX-ANTENNA-PATTERN" "RX-STBC-1" "MAX-MPDU-11454" "MAX-A-MPDU-LEN-EXP7"];
- ssid = "TurrisRules5";
- wpa = 2;
- wpaPassphrase = "@PASS_TURRIS_RULES@";
- bridge = "brlan";
- };
- "wlp3s0" = {
- countryCode = "CZ";
- hwMode = "g";
- channel = 7;
- ht_capab = ["HT40+" "SHORT-GI-20" "SHORT-GI-40" "TX-STBC" "RX-STBC1" "DSSS_CCK-40"];
- ssid = "TurrisRules";
- wpa = 2;
- wpaPassphrase = "@PASS_TURRIS_RULES@";
- bridge = "brlan";
- };
- };
- };
-
services.syncthing = {
enable = true;
openDefaultPorts = true;