Recreated options

This commit is contained in:
Jurn Wubben 2025-08-29 11:05:27 +02:00
parent 0b839e082a
commit fc8178ed80
22 changed files with 325 additions and 205 deletions

View file

@ -3,13 +3,15 @@
lib,
...
}: let
cfg = config.niksos.server;
inherit (config.services.caddy) enable;
inherit (lib) mkIf;
in {
services.caddy = {
enable = cfg;
email = "jurnwubben@gmail.com";
enableReload = false;
};
config = mkIf enable {
services.caddy = {
email = "jurnwubben@gmail.com";
enableReload = false;
};
networking.firewall.allowedTCPPorts = lib.mkIf cfg [80 443];
networking.firewall.allowedTCPPorts = [80 443];
};
}