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

@@ -1,12 +1,7 @@
{
lib,
config,
proxyReverseArr,
setup,
...
}:
{ lib, config, ... }:
let
cfg = config.my.servers.prowlarr;
setup = import ../setup.nix { inherit lib config; };
in
{
options.my.servers.prowlarr = setup.mkOptions "prowlarr" "indexer" 9696;
@@ -19,7 +14,7 @@ in
services = {
prowlarr.enable = cfg.enable;
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (
proxyReverseArr cfg.hostName cfg.port // { }
setup.proxyReverseArr cfg.hostName cfg.port // { }
);
};
virtualisation.oci-containers.containers.flaresolverr = lib.mkIf cfg.enable {