47 lines
1.3 KiB
Nix
47 lines
1.3 KiB
Nix
{ config, service_configs, ... }:
|
|
{
|
|
services.arrInit = {
|
|
sonarr = {
|
|
enable = true;
|
|
serviceName = "sonarr";
|
|
port = service_configs.ports.sonarr;
|
|
dataDir = service_configs.sonarr.dataDir;
|
|
rootFolders = [ service_configs.media.tvDir ];
|
|
downloadClients = [
|
|
{
|
|
name = "qBittorrent";
|
|
implementation = "QBittorrent";
|
|
configContract = "QBittorrentSettings";
|
|
fields = {
|
|
host = config.vpnNamespaces.wg.namespaceAddress;
|
|
port = service_configs.ports.torrent;
|
|
useSsl = false;
|
|
tvCategory = "tvshows";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
|
|
radarr = {
|
|
enable = true;
|
|
serviceName = "radarr";
|
|
port = service_configs.ports.radarr;
|
|
dataDir = service_configs.radarr.dataDir;
|
|
rootFolders = [ service_configs.media.moviesDir ];
|
|
downloadClients = [
|
|
{
|
|
name = "qBittorrent";
|
|
implementation = "QBittorrent";
|
|
configContract = "QBittorrentSettings";
|
|
fields = {
|
|
host = config.vpnNamespaces.wg.namespaceAddress;
|
|
port = service_configs.ports.torrent;
|
|
useSsl = false;
|
|
movieCategory = "movies";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|