hotspot test
This commit is contained in:
@@ -3,11 +3,18 @@
|
|||||||
flake.nixosModules.hotspot = { config, lib, ... }: {
|
flake.nixosModules.hotspot = { config, lib, ... }: {
|
||||||
|
|
||||||
networking.firewall.interfaces."wlo1" = {
|
networking.firewall.interfaces."wlo1" = {
|
||||||
|
ipv4.addresses = [{ address = "192.168.121.1"; prefixLength = 32; }];
|
||||||
allowedUDPPorts = [ 53 67 68 ];
|
allowedUDPPorts = [ 53 67 68 ];
|
||||||
allowedTCPPorts = [ 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;
|
sops.secrets."hotspotPass".sopsFile = ./secrets.yaml;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user