diff --git a/modules/features/hotspot.nix b/modules/features/hotspot.nix index 0f3c7b8..0de171c 100644 --- a/modules/features/hotspot.nix +++ b/modules/features/hotspot.nix @@ -3,11 +3,18 @@ flake.nixosModules.hotspot = { config, lib, ... }: { networking.firewall.interfaces."wlo1" = { + ipv4.addresses = [{ address = "192.168.121.1"; prefixLength = 32; }]; allowedUDPPorts = [ 53 67 68 ]; allowedTCPPorts = [ 53 67 68 ]; }; - services.dnsmasq.enable = true; + services.dnsmasq = { + enable = true; + settings = { + interface = "wlo1"; + dhcp-range = [ "192.168.121.2,192.168.121.10,1h" ]; + }; + }; sops.secrets."hotspotPass".sopsFile = ./secrets.yaml;