2024-07-15 16:46:14 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-07-15 16:27:23 +02:00
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.arrSuite;
|
|
|
|
in
|
2024-07-14 15:48:01 +02:00
|
|
|
{
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2024-07-15 16:27:23 +02:00
|
|
|
services.bazarr = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
#TODO: create duplicated instances of Sonarr.
|
|
|
|
systemd.services."sonarrAnime" = {
|
2024-07-14 15:48:01 +02:00
|
|
|
enable = true;
|
2024-07-15 16:27:23 +02:00
|
|
|
description = "Duplicated Sonarr instance, for animes";
|
|
|
|
after = [
|
|
|
|
"syslog.target"
|
|
|
|
"network.target"
|
|
|
|
];
|
|
|
|
|
2024-07-14 15:48:01 +02:00
|
|
|
path = [ pkgs.sonarr ];
|
|
|
|
serviceConfig = {
|
2024-07-15 16:27:23 +02:00
|
|
|
Type = "simple";
|
|
|
|
User = "sonarr";
|
|
|
|
ExecStart = "${pkgs.sonarr}/bin/Sonarr -nobrowser -data=/var/lib/sonarrAnime";
|
|
|
|
TimeoutStopSec = "20";
|
|
|
|
KillMode = "process";
|
|
|
|
Restart = "on-failure";
|
2024-07-14 15:48:01 +02:00
|
|
|
};
|
2024-07-15 16:27:23 +02:00
|
|
|
wantedBy = [ "multi-user.target" ];
|
2024-07-14 15:48:01 +02:00
|
|
|
};
|
|
|
|
}
|