final setup for router, tested

This commit is contained in:
bogale 2026-11-08 17:47:43 +09:00
commit 58ce5e8a6c
6 changed files with 53 additions and 25 deletions

View file

@ -16,6 +16,14 @@
./vps-init.nix
];
networking = {
firewall = {
allowedTCPPorts = [ 53 ];
allowedUDPPorts = [
53
67
];
};
nat.enable = true;
networkmanager.ensureProfiles = {
environmentFiles = [ config.sops.secrets.wifi-env.path ];
profiles = {
@ -28,11 +36,12 @@
id = "home-wifi";
type = "wifi";
};
ipv6.method = "disabled";
wifi-security = {
key-mgmt = "sae";
psk = "$BOGALE_PSK";
psk = "$BOGALE_5_PSK";
};
wifi.ssid = "bogale";
wifi.ssid = "bogale_5";
};
};
};