mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-09 23:48:14 +01:00
system: Open dnsmasq ports with hotspot option
Makes it possible to connect to mobile hotspots. Now the PinePhone is a lot more useful.
This commit is contained in:
parent
f4193012f9
commit
b14eca2c55
@ -14,6 +14,7 @@ let
|
|||||||
mkEnableOption
|
mkEnableOption
|
||||||
mkIf
|
mkIf
|
||||||
singleton
|
singleton
|
||||||
|
optional
|
||||||
;
|
;
|
||||||
|
|
||||||
inherit (cfg)
|
inherit (cfg)
|
||||||
@ -23,6 +24,7 @@ let
|
|||||||
mullvad
|
mullvad
|
||||||
allowSRB2Port
|
allowSRB2Port
|
||||||
allowDevPort
|
allowDevPort
|
||||||
|
hotspot
|
||||||
noRoot
|
noRoot
|
||||||
postgres
|
postgres
|
||||||
;
|
;
|
||||||
@ -79,6 +81,7 @@ in
|
|||||||
postgres = mkEnableOption "postgres database for containers";
|
postgres = mkEnableOption "postgres database for containers";
|
||||||
allowSRB2Port = mkEnableOption "port for srb2";
|
allowSRB2Port = mkEnableOption "port for srb2";
|
||||||
allowDevPort = mkEnableOption "port for development server";
|
allowDevPort = mkEnableOption "port for development server";
|
||||||
|
hotspot = mkEnableOption "mobile hotspot support";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
@ -246,7 +249,13 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
firewall = {
|
firewall = {
|
||||||
allowedUDPPorts = mkIf allowSRB2Port [ 5029 ];
|
allowedUDPPorts =
|
||||||
|
optional hotspot [
|
||||||
|
67
|
||||||
|
68
|
||||||
|
]
|
||||||
|
++ optional allowSRB2Port [ 5029 ];
|
||||||
|
|
||||||
allowedTCPPorts = mkIf allowDevPort [ 3000 ];
|
allowedTCPPorts = mkIf allowDevPort [ 3000 ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user