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

21 lines
469 B
Nix

_:
let
inherit (import ../../../shared/caddy-helpers.nix) tlsDNSChallenge;
in
{
services = {
caddy.virtualHosts."radarr.labs.adtya.xyz" = {
extraConfig = ''
${tlsDNSChallenge}
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" ];
}