server hotspot

This commit is contained in:
bogale 2026-11-01 22:09:03 +09:00
commit 4c0362efb7
7 changed files with 45 additions and 53 deletions

View file

@ -19,9 +19,24 @@
allowedUDPPorts = [ 443 ];
};
hostName = "nixos-server";
networkmanager.ensureProfiles.profiles.home-wifi = {
ipv4.addresses = "10.1.0.2/16";
ipv6.addresses = "fc01::2/64";
networkmanager.ensureProfiles.profiles = {
dhcp-ethernet.connection.cloned-mac-address = "0C:0E:76:A6:E6:B6";
home-wifi = {
ipv4 = {
addresses = "10.1.0.1/16";
method = "shared";
};
ipv6 = {
addresses = "fc01::1/64";
method = "shared";
};
wifi = {
band = "a";
channel = 157;
channel-width = 80;
mode = "ap";
};
};
};
wg-quick.interfaces.awg0.configFile = config.sops.templates.awg1-conf.path;
};