chore: Better use of boolean to activate service
This commit is contained in:
parent
2f5c8be389
commit
7506073727
4 changed files with 6 additions and 8 deletions
|
|
@ -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."/" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue