aboutsummaryrefslogtreecommitdiff
path: root/nixos/routers
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2023-02-06 20:44:14 +0100
committerKarel Kočí <cynerd@email.cz>2023-02-06 20:44:14 +0100
commit8b96dd41971e008a6a2527fe10c6670d2248117e (patch)
treec7327ec26648e62279778696e38dc70415d16151 /nixos/routers
parentadc6902502aa03509d138e9220843bf4d6a1a390 (diff)
downloadnixos-personal-8b96dd41971e008a6a2527fe10c6670d2248117e.tar.gz
nixos-personal-8b96dd41971e008a6a2527fe10c6670d2248117e.tar.bz2
nixos-personal-8b96dd41971e008a6a2527fe10c6670d2248117e.zip
Apply statix suggestions
Diffstat (limited to 'nixos/routers')
-rw-r--r--nixos/routers/wifi-adm.nix4
-rw-r--r--nixos/routers/wifi-spt.nix4
2 files changed, 4 insertions, 4 deletions
diff --git a/nixos/routers/wifi-adm.nix b/nixos/routers/wifi-adm.nix
index 339f4ef..353b551 100644
--- a/nixos/routers/wifi-adm.nix
+++ b/nixos/routers/wifi-adm.nix
@@ -35,7 +35,7 @@ in {
interfaces =
(optionalAttrs (cnf.ar9287.interface != null) {
"${cnf.ar9287.interface}" = hostapd.qualcomAtherosAR9287 {
- channel = cnf.ar9287.channel;
+ inherit (cnf.ar9287) channel;
bssid = "@BSSID_AR9287_0@";
ssid = "TurrisAdamkovi";
wpa = 2;
@@ -61,7 +61,7 @@ in {
})
// (optionalAttrs (cnf.qca988x.interface != null) {
"${cnf.qca988x.interface}" = hostapd.qualcomAtherosQCA988x {
- channel = cnf.qca988x.channel;
+ inherit (cnf.qca988x) channel;
bssid = "@BSSID_AR9287_0@";
ssid = "TurrisAdamkovi5";
wpa = 2;
diff --git a/nixos/routers/wifi-spt.nix b/nixos/routers/wifi-spt.nix
index 69e8376..39740a1 100644
--- a/nixos/routers/wifi-spt.nix
+++ b/nixos/routers/wifi-spt.nix
@@ -35,7 +35,7 @@ in {
interfaces =
(optionalAttrs (cnf.ar9287.interface != null) {
"${cnf.ar9287.interface}" = hostapd.qualcomAtherosAR9287 {
- channel = cnf.ar9287.channel;
+ inherit (cnf.ar9287) channel;
bssid = "@BSSID_AR9287_0@";
ssid = "TurrisRules";
wpa = 2;
@@ -54,7 +54,7 @@ in {
})
// (optionalAttrs (cnf.qca988x.interface != null) {
"${cnf.qca988x.interface}" = hostapd.qualcomAtherosQCA988x {
- channel = cnf.qca988x.channel;
+ inherit (cnf.qca988x) channel;
bssid = "@BSSID_QCA988X_0@";
ssid = "TurrisRules5";
wpa = 2;