25 lines
589 B
Nix
25 lines
589 B
Nix
{
|
|
lib,
|
|
config,
|
|
proxyReverseArr,
|
|
...
|
|
}:
|
|
{
|
|
options.my.servers.prowlarr.enable = lib.mkEnableOption "enable";
|
|
config = lib.mkIf config.my.servers.prowlarr.enable {
|
|
users.users.prowlarr = {
|
|
group = "piracy";
|
|
isSystemUser = true;
|
|
};
|
|
services = {
|
|
prowlarr.enable = true;
|
|
nginx.virtualHosts."indexer.${config.my.domain}" = proxyReverseArr 9696 // { };
|
|
};
|
|
virtualisation.oci-containers.containers.flaresolverr = {
|
|
autoStart = true;
|
|
image = "ghcr.io/flaresolverr/flaresolverr:latest";
|
|
ports = [ "8191:8191" ];
|
|
};
|
|
};
|
|
}
|