mob next [ci-skip] [ci skip] [skip ci]

lastFile:routers/white-house-2/configuration.nix
This commit is contained in:
2026-05-05 16:22:18 +07:00
parent 51e893707f
commit 094893d916
+7 -23
View File
@@ -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