hotspot test
This commit is contained in:
@@ -2,23 +2,11 @@
|
|||||||
|
|
||||||
flake.nixosModules.hotspot = { config, lib, ... }: {
|
flake.nixosModules.hotspot = { config, lib, ... }: {
|
||||||
|
|
||||||
networking.interfaces."eno1" = {
|
networking.firewall.interfaces."wlo1" = {
|
||||||
useDHCP = false;
|
allowedUDPPorts = [ 67 68 ];
|
||||||
ipv4.addresses = [
|
|
||||||
{ address = "192.168.222.1"; prefixLength = 24; }
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.interfaces."eno1" = {
|
services.dnsmasq.enable = true;
|
||||||
allowedUDPPorts = [ 53 67 ];
|
|
||||||
allowedTCPPorts = [ 53 67 ];
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.nat = {
|
|
||||||
enable = true;
|
|
||||||
externalInterface = "wlo1";
|
|
||||||
internalInterfaces = [ "eno1" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
/*sops.secrets."hotspotPass".sopsFile = ./secrets.yaml;
|
/*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" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,8 @@
|
|||||||
netbird
|
netbird
|
||||||
openssh
|
openssh
|
||||||
sops
|
sops
|
||||||
|
|
||||||
|
hotspot
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|||||||
Reference in New Issue
Block a user