servers module linting, removed unnecesary nesting

This commit is contained in:
2025-04-16 22:38:02 -06:00
parent 556bce8282
commit bcbf047415
6 changed files with 74 additions and 86 deletions

View File

@@ -5,14 +5,12 @@ let
in
{
options.my.servers.ombi = setup.mkOptions "ombi" "requests" 3425;
config = {
services = {
ombi = lib.mkIf cfg.enable {
enable = true;
inherit (cfg) port;
openFirewall = !cfg.isLocal;
};
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (setup.proxyReverseFix cfg);
config.services = {
ombi = lib.mkIf cfg.enable {
enable = true;
inherit (cfg) port;
openFirewall = !cfg.isLocal;
};
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (setup.proxyReverseFix cfg);
};
}