diff --git a/modules/features/hotspot.nix b/modules/features/hotspot.nix index d93727e..2fbded4 100644 --- a/modules/features/hotspot.nix +++ b/modules/features/hotspot.nix @@ -2,23 +2,11 @@ flake.nixosModules.hotspot = { config, lib, ... }: { - networking.interfaces."eno1" = { - useDHCP = false; - ipv4.addresses = [ - { address = "192.168.222.1"; prefixLength = 24; } - ]; + networking.firewall.interfaces."wlo1" = { + allowedUDPPorts = [ 67 68 ]; }; - networking.firewall.interfaces."eno1" = { - allowedUDPPorts = [ 53 67 ]; - allowedTCPPorts = [ 53 67 ]; - }; - - networking.nat = { - enable = true; - externalInterface = "wlo1"; - internalInterfaces = [ "eno1" ]; - }; + services.dnsmasq.enable = true; /*sops.secrets."hotspotPass".sopsFile = ./secrets.yaml; @@ -33,11 +21,5 @@ }; };*/ - services.dnsmasq = { - enable = true; - settings = { - dhcp-range = [ "192.168.222.2,192.168.222.4" ]; - }; - }; }; } diff --git a/modules/hosts/laptop/configuration.nix b/modules/hosts/laptop/configuration.nix index d7302e1..b1912ac 100644 --- a/modules/hosts/laptop/configuration.nix +++ b/modules/hosts/laptop/configuration.nix @@ -16,6 +16,8 @@ netbird openssh sops + + hotspot ]; config = {