migrated lambdas to setup.nix + lambda for server files

This commit is contained in:
2024-10-02 18:16:06 -06:00
parent 6181709ca3
commit ef00d45148
21 changed files with 118 additions and 347 deletions

View File

@@ -2,11 +2,11 @@
lib,
config,
proxyReverseArr,
setup,
...
}:
let
cfg = config.my.servers.radarr;
setup = import ../setup.nix { inherit lib config; };
in
{
options.my.servers.radarr = setup.mkOptions "radarr" "movies" 7878;
@@ -18,7 +18,7 @@ in
group = "piracy";
};
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (
proxyReverseArr cfg.hostName cfg.port // { }
setup.proxyReverseArr cfg.hostName cfg.port // { }
);
};
};