configuration.nix/hosts/layne/services/apps/radarr.nix
2024-10-27 23:56:51 +05:30

22 lines
512 B
Nix

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