2024-10-27 20:50:37 +05:30
|
|
|
_:
|
|
|
|
let
|
2024-10-31 14:39:20 +05:30
|
|
|
inherit (import ../../../shared/caddy-helpers.nix) logFormat;
|
2024-10-27 20:50:37 +05:30
|
|
|
in
|
|
|
|
{
|
2024-10-23 23:59:14 +05:30
|
|
|
services = {
|
|
|
|
caddy.virtualHosts."sonarr.labs.adtya.xyz" = {
|
2024-10-27 23:09:50 +05:30
|
|
|
inherit logFormat;
|
2024-10-23 23:59:14 +05:30
|
|
|
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" ];
|
2024-10-23 23:59:14 +05:30
|
|
|
}
|