This commit is contained in:
soraefir
2026-05-08 00:06:21 +02:00
parent 8092bac6b7
commit e8c9fc52fb
7 changed files with 148 additions and 49 deletions

View File

@@ -7,11 +7,12 @@
firewall = {
enable = true;
allowedUDPPorts =
(if config.syscfg.server ? wireguard then [ 1515 ] else [ ]) ++
(if config.syscfg.server && config.syscfg.server.wireguard then [ 1515 ] else [ ]) ++
(if config.syscfg.server && config.syscfg.server.web then [ 80 443 22 ] else [ ]) ++
[ ];
allowedTCPPorts =
(if config.syscfg.server ? web then [ 80 443 22 ] else [ ]) ++
(if config.syscfg.server && config.syscfg.server.web then [ 80 443 22 ] else [ ]) ++
[ ];
};
};