hotspot broken

This commit is contained in:
2026-04-24 20:53:46 -05:00
parent b12be8335a
commit a42623f01e
3 changed files with 47 additions and 38 deletions

View File

@@ -0,0 +1,43 @@
{ ... }: {
flake.nixosModules.hotspot = { config, lib, ... }: {
networking.interfaces."eno1" = {
useDHCP = false;
ipv4.addresses = [
{ address = "192.168.222.1"; prefixLength = 24; }
];
};
networking.firewall.interfaces."eno1" = {
allowedUDPPorts = [ 53 67 ];
allowedTCPPorts = [ 53 67 ];
};
networking.nat = {
enable = true;
externalInterface = "wlo1";
internalInterfaces = [ "eno1" ];
};
/*sops.secrets."hotspotPass".sopsFile = ./secrets.yaml;
services.hostapd = {
enable = true;
radios.wlo1 = {
networks.wlo1 = {
ssid = "laptopHotspot";
authentication.saePasswords = [{ passwordFile = "${config.sops.secrets."hotspotPass".path}"; }];
};
};
};*/
services.dnsmasq = {
enable = true;
settings = {
dhcp-range = [ "192.168.222.2,192.168.222.4" ];
};
};
};
}