mob next [ci-skip] [ci skip] [skip ci]
lastFile:routers/white-house-2/configuration.nix
This commit is contained in:
@@ -21,15 +21,11 @@ in
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
"${inputs.liminix}/modules/wlan.nix"
|
"${inputs.liminix}/modules/wlan.nix"
|
||||||
"${inputs.liminix}/modules/network"
|
|
||||||
"${inputs.liminix}/modules/vlan"
|
|
||||||
"${inputs.liminix}/modules/ssh"
|
"${inputs.liminix}/modules/ssh"
|
||||||
"${inputs.liminix}/modules/bridge"
|
|
||||||
"${inputs.liminix}/modules/health-check"
|
|
||||||
"${modulesPath}/profiles/wap.nix"
|
"${modulesPath}/profiles/wap.nix"
|
||||||
];
|
];
|
||||||
|
|
||||||
hostname = "whitehouse-2";
|
hostname = "whitehouse2";
|
||||||
boot = {
|
boot = {
|
||||||
tftp = {
|
tftp = {
|
||||||
freeSpaceBytes = 3 * 1024 * 1024;
|
freeSpaceBytes = 3 * 1024 * 1024;
|
||||||
@@ -44,24 +40,9 @@ in
|
|||||||
|
|
||||||
users.root = secrets.root;
|
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 = {
|
profile.wap = {
|
||||||
interfaces = with config.hardware.networkInterfaces; [
|
interfaces = with config.hardware.networkInterfaces; [
|
||||||
|
wan
|
||||||
lan
|
lan
|
||||||
wlan
|
wlan
|
||||||
wlan5
|
wlan5
|
||||||
@@ -71,14 +52,14 @@ in
|
|||||||
"${secrets.ssid}" = {
|
"${secrets.ssid}" = {
|
||||||
interface = config.hardware.networkInterfaces.wlan;
|
interface = config.hardware.networkInterfaces.wlan;
|
||||||
hw_mode = "g";
|
hw_mode = "g";
|
||||||
channel = "2";
|
channel = "6";
|
||||||
ieee80211n = 1;
|
ieee80211n = 1;
|
||||||
}
|
}
|
||||||
// wirelessConfig;
|
// wirelessConfig;
|
||||||
"${secrets.ssid}-5" = rec {
|
"${secrets.ssid}-5" = rec {
|
||||||
interface = config.hardware.networkInterfaces.wlan5;
|
interface = config.hardware.networkInterfaces.wlan5;
|
||||||
hw_mode = "a";
|
hw_mode = "a";
|
||||||
channel = 36;
|
channel = 12;
|
||||||
ht_capab = "[HT40+]";
|
ht_capab = "[HT40+]";
|
||||||
vht_oper_chwidth = 1;
|
vht_oper_chwidth = 1;
|
||||||
vht_oper_centr_freq_seg0_idx = channel + 6;
|
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; [
|
defaultProfile.packages = with pkgs; [
|
||||||
busybox
|
busybox
|
||||||
iw
|
iw
|
||||||
|
|||||||
Reference in New Issue
Block a user