moved ap to module

This commit is contained in:
bogale 2026-11-08 21:41:02 +09:00
commit dfdfe226a8
9 changed files with 57 additions and 62 deletions

View file

@ -1,8 +1,5 @@
{ config, pkgs, ... }: {
boot.kernelParams = [
"cfg80211.ieee80211_regdom=RU"
"consoleblank=60"
];
{ config, ... }: {
boot.kernelParams = [ "consoleblank=60" ];
imports = [
../mods/host.nix
./hardware.nix
@ -22,27 +19,6 @@
allowedUDPPorts = [ 443 ];
};
hostName = "nixos-server";
nat.internalInterfaces = [ "wlp2s0" ];
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";
};
};
};
wg-quick.interfaces.awg0.configFile = config.sops.templates.awg1-conf.path;
};
security.acme = {