From 8b96dd41971e008a6a2527fe10c6670d2248117e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 6 Feb 2023 20:44:14 +0100 Subject: Apply statix suggestions --- nixos/routers/wifi-adm.nix | 4 ++-- nixos/routers/wifi-spt.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'nixos/routers') 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; -- cgit v1.2.3