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

32
server/mods/ap.nix Normal file
View file

@ -0,0 +1,32 @@
{
boot.kernelParams = [ "cfg80211.ieee80211_regdom=RU" ];
networking = {
firewall = {
allowedTCPPorts = [ 53 ];
allowedUDPPorts = [
53
67
];
};
networkmanager.ensureProfiles.profiles = {
dhcp-ethernet.ethernet.cloned-mac-address = "0C:0E:76:A6:E6:B6";
home-wifi = {
ipv4 = {
addresses = "10.1.0.1/16";
method = "shared";
};
wifi = {
band = "a";
channel = 157;
channel-width = 80;
mode = "ap";
};
wifi-security = {
group = "ccmp";
pairwise = "ccmp";
proto = "rsn";
};
};
};
};
}