configuration.nix/hosts/layne/services/apps/sonarr.nix

22 lines
469 B
Nix
Raw Normal View History

_:
let
inherit (import ../../../shared/caddy-helpers.nix) tlsDNSChallenge;
in
{
services = {
caddy.virtualHosts."sonarr.labs.adtya.xyz" = {
extraConfig = ''
${tlsDNSChallenge}
reverse_proxy 127.0.0.1:8989
'';
};
sonarr = {
enable = true;
dataDir = "/mnt/data/sonarr";
user = "mediaserver";
group = "mediaserver";
};
};
systemd.services.radarr.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
}