nix-config/hosts/sisyphe/features/multimedia/arr-suite.nix

90 lines
1.9 KiB
Nix
Raw Normal View History

2024-07-15 16:46:14 +02:00
{
config,
...
}:
2024-07-15 16:27:23 +02:00
let
cfg = config.arrSuite;
in
{
services.sonarr = {
enable = true;
openFirewall = true;
};
services.radarr = {
enable = true;
group = "multimedia";
openFirewall = true;
};
2024-12-26 14:43:20 +01:00
2024-12-26 14:38:59 +01:00
services.prowlarr = {
enable = true;
openFirewall = true;
};
services.jellyseerr = {
openFirewall = true;
enable = true;
};
2024-07-15 16:27:23 +02:00
services.bazarr = {
enable = true;
openFirewall = true;
};
2024-08-25 12:07:50 +02:00
/*
#TODO: create duplicated instances of Sonarr.
systemd.services."sonarrAnime" = {
enable = true;
description = "Duplicated Sonarr instance, for animes";
after = [
"syslog.target"
"network.target"
];
2024-07-15 16:27:23 +02:00
2024-08-25 12:07:50 +02:00
path = [ pkgs.sonarr ];
serviceConfig = {
Type = "simple";
User = "sonarr";
ExecStart = "${pkgs.sonarr}/bin/Sonarr -nobrowser -data=/var/lib/sonarrAnime";
TimeoutStopSec = "20";
KillMode = "process";
Restart = "on-failure";
};
wantedBy = [ "multi-user.target" ];
};
2024-08-25 12:07:50 +02:00
*/
2024-08-12 15:56:45 +02:00
2024-10-30 17:44:54 +01:00
services.caddy.virtualHosts = {
"http://radarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :7878
'';
"http://sonarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :8989
'';
"http://sonarr-anime.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :8999
'';
"http://prowlarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :9696
'';
"http://katflix.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :5055
'';
"http://bazarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :6767
'';
"http://bazarr-anime.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :6777
'';
};
}