chore: Better use of boolean to activate service

This commit is contained in:
Wateir 2025-12-24 18:06:14 +01:00
parent 2f5c8be389
commit 7506073727
4 changed files with 6 additions and 8 deletions

View file

@ -21,7 +21,7 @@ with lib;
};
})
(mkIf config.module.roundcube.enable {
(mkIf config.services.roundcube.enable {
"${config.module.hostName}-${config.module.roundcube.subdomain}" = {
listen = [{ addr = "0.0.0.0"; port = config.module.roundcube.port; }];
root = "${pkgs.roundcube}/public_html";
@ -40,7 +40,7 @@ with lib;
};
};
})
(mkIf config.module.forgejo.enable {
(mkIf config.services.forgejo.enable {
"${config.module.hostName}-${config.module.forgejo.subdomain}" = {
listen = [{ addr = "0.0.0.0"; port = config.module.forgejo.externalPort; }];
locations."/" = {