moved ap to module

This commit is contained in:
bogale 2026-11-08 19:44:48 +09:00
commit d547d2f567
4 changed files with 53 additions and 49 deletions

View file

@ -16,33 +16,19 @@
./vps-init.nix
];
networking = {
firewall = {
allowedTCPPorts = [ 53 ];
allowedUDPPorts = [
53
67
];
};
nat.enable = true;
networkmanager.ensureProfiles = {
environmentFiles = [ config.sops.secrets.wifi-env.path ];
profiles = {
dhcp-ethernet.connection = {
id = "dhcp-ethernet";
type = "ethernet";
profiles.home-wifi = {
connection = {
id = "home-wifi";
type = "wifi";
};
home-wifi = {
connection = {
id = "home-wifi";
type = "wifi";
};
ipv6.method = "disabled";
wifi-security = {
key-mgmt = "sae";
psk = "$BOGALE_5_PSK";
};
wifi.ssid = "bogale_5";
ipv6.method = "disabled";
wifi-security = {
key-mgmt = "sae";
psk = "$BOGALE_5_PSK";
};
wifi.ssid = "bogale_5";
};
};
wg-quick.interfaces.awg0.type = "amneziawg";