From 094893d9164a2bc55e715066e6ab355b1aff43e7 Mon Sep 17 00:00:00 2001 From: kurogeek Date: Tue, 5 May 2026 16:22:18 +0700 Subject: [PATCH] mob next [ci-skip] [ci skip] [skip ci] lastFile:routers/white-house-2/configuration.nix --- routers/white-house-2/configuration.nix | 30 ++++++------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/routers/white-house-2/configuration.nix b/routers/white-house-2/configuration.nix index 7769199..7a40a8f 100644 --- a/routers/white-house-2/configuration.nix +++ b/routers/white-house-2/configuration.nix @@ -21,15 +21,11 @@ in { imports = [ "${inputs.liminix}/modules/wlan.nix" - "${inputs.liminix}/modules/network" - "${inputs.liminix}/modules/vlan" "${inputs.liminix}/modules/ssh" - "${inputs.liminix}/modules/bridge" - "${inputs.liminix}/modules/health-check" "${modulesPath}/profiles/wap.nix" ]; - hostname = "whitehouse-2"; + hostname = "whitehouse2"; boot = { tftp = { freeSpaceBytes = 3 * 1024 * 1024; @@ -44,24 +40,9 @@ in users.root = secrets.root; - services.resolvconf = lib.mkForce ( - pkgs.liminix.services.oneshot rec { - name = "resolvconf"; - up = '' - ( in_outputs ${name} - echo "nameserver 208.67.222.222" >> resolv.conf - echo "nameserver 208.67.220.220" >> resolv.conf - echo "nameserver 1.1.1.1" >> resolv.conf - echo "nameserver 1.0.0.1" >> resolv.conf - echo "nameserver 8.8.8.8" >> resolv.conf - chmod 0444 resolv.conf - ) - ''; - } - ); - profile.wap = { interfaces = with config.hardware.networkInterfaces; [ + wan lan wlan wlan5 @@ -71,14 +52,14 @@ in "${secrets.ssid}" = { interface = config.hardware.networkInterfaces.wlan; hw_mode = "g"; - channel = "2"; + channel = "6"; ieee80211n = 1; } // wirelessConfig; "${secrets.ssid}-5" = rec { interface = config.hardware.networkInterfaces.wlan5; hw_mode = "a"; - channel = 36; + channel = 12; ht_capab = "[HT40+]"; vht_oper_chwidth = 1; vht_oper_centr_freq_seg0_idx = channel + 6; @@ -89,6 +70,9 @@ in }; }; + system.service.network.forward.enableIPv4 = false; + system.service.network.forward.enableIPv6 = false; + defaultProfile.packages = with pkgs; [ busybox iw