2023-12-10 21:09:53 +01:00
|
|
|
{ extraInfo, ... }:
|
2023-11-23 21:55:37 +01:00
|
|
|
{
|
|
|
|
services.jellyfin.enable = true;
|
2023-11-24 18:45:27 +01:00
|
|
|
services.nginx.virtualHosts.${extraInfo.jellyfinURI} = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
|
|
|
|
locations = {
|
|
|
|
"/" = {
|
|
|
|
proxyPass = "http://localhost:8096";
|
|
|
|
};
|
|
|
|
|
|
|
|
"/socket" = {
|
|
|
|
proxyPass = "http://localhost:8096";
|
|
|
|
proxyWebsockets = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-11-24 22:12:02 +01:00
|
|
|
|
|
|
|
services.sonarr = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
2023-11-24 22:28:06 +01:00
|
|
|
|
|
|
|
services.radarr = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Torrent client
|
|
|
|
services.deluge = {
|
|
|
|
enable = true;
|
|
|
|
web.enable = true;
|
|
|
|
};
|
2023-12-10 21:09:53 +01:00
|
|
|
|
|
|
|
systemd.services.deluged.bindsTo = [ "wireguard-wg1.service" ];
|
|
|
|
systemd.services.deluged.requires = [ "network-online.target" ];
|
|
|
|
systemd.services.deluged.serviceConfig.NetworkNamespacePath = "/var/run/netns/wg1ns";
|
|
|
|
systemd.services.deluged.serviceConfig.PrivateNetwork = true;
|
2023-11-23 21:55:37 +01:00
|
|
|
}
|