nix-config/hosts/sisyphe/features/multimedia/arr-suite.nix
harry123 8a522c525c Refactor Nix configurations to update URLs from hypervirtual.world to rougebordeaux.xyz
- Updated flake.nix to change Alejandra and other inputs to follow the new repository structure.
- Modified uptime-kuma configurations to reflect the new domain for Caddy reverse proxy settings.
- Adjusted various multimedia services in Sisyphe to use the new domain for Caddy virtual hosts.
- Disabled the Sabnzbd service in Sisyphe and updated its Caddy configuration.
- Corrected multiple service configurations in Sisyphe to point to the new domain, including Grafana, Nextcloud, and Synapse Matrix.
- Ensured all references to hypervirtual.world are replaced with rougebordeaux.xyz across all relevant files.
2025-05-08 16:02:47 +02:00

89 lines
1.9 KiB
Nix

{
config,
...
}:
let
cfg = config.arrSuite;
in
{
services.sonarr = {
enable = true;
openFirewall = true;
};
services.radarr = {
enable = true;
group = "multimedia";
openFirewall = true;
};
services.prowlarr = {
enable = true;
openFirewall = true;
};
services.jellyseerr = {
openFirewall = true;
enable = true;
};
services.bazarr = {
enable = true;
openFirewall = true;
};
/*
#TODO: create duplicated instances of Sonarr.
systemd.services."sonarrAnime" = {
enable = true;
description = "Duplicated Sonarr instance, for animes";
after = [
"syslog.target"
"network.target"
];
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" ];
};
*/
services.caddy.virtualHosts = {
"http://radarr.sisyphe.normandy.rougebordeaux.xyz".extraConfig = ''
reverse_proxy :7878
'';
"http://sonarr.sisyphe.normandy.rougebordeaux.xyz.extraConfig = ''
reverse_proxy :8989
'';
"http://sonarr-anime.sisyphe.normandy.rougebordeaux.xyz.extraConfig = ''
reverse_proxy :8999
'';
"http://prowlarr.sisyphe.normandy.rougebordeaux.xyz.extraConfig = ''
reverse_proxy :9696
'';
"http://katflix.sisyphe.normandy.rougebordeaux.xyz.extraConfig = ''
reverse_proxy :5055
'';
"http://bazarr.sisyphe.normandy.rougebordeaux.xyz.extraConfig = ''
reverse_proxy :6767
'';
"http://bazarr-anime.sisyphe.normandy.rougebordeaux.xyz.extraConfig = ''
reverse_proxy :6777
'';
};
}