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

22 lines
461 B
Nix
Raw Normal View History

_:
let
2024-10-31 14:39:20 +05:30
inherit (import ../../../shared/caddy-helpers.nix) logFormat;
in
{
services = {
caddy.virtualHosts."sonarr.labs.adtya.xyz" = {
2024-10-27 23:09:50 +05:30
inherit logFormat;
extraConfig = ''
reverse_proxy 127.0.0.1:8989
'';
};
sonarr = {
enable = true;
dataDir = "/mnt/data/sonarr";
user = "mediaserver";
group = "mediaserver";
};
};
2024-11-01 19:20:53 +05:30
systemd.services.sanarr.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
}