nixos/jackflix: Add Transmission

This commit is contained in:
2022-06-12 02:40:57 +01:00
parent 87fbd63c46
commit f9206d68d0
4 changed files with 67 additions and 26 deletions

View File

@@ -36,6 +36,7 @@
users = {
groups.media = {};
users = {
transmission.extraGroups = [ "media" ];
radarr.extraGroups = [ "media" ];
};
};
@@ -47,6 +48,31 @@
};
services = {
transmission = {
enable = true;
openPeerPorts = true;
openRPCPort = true;
downloadDirPermissions = null;
performanceNetParameters = true;
settings = {
download-dir = "/mnt/media/downloads/torrents";
incomplete-dir-enabled = true;
incomplete-dir = "/mnt/media/downloads/torrents/.incomplete";
umask = 002;
peer-port = 55471;
utp-enabled = true;
port-forwarding-enabled = false;
ratio-limit = 2.0;
ratio-limit-enabled = true;
rpc-bind-address = "::";
rpc-whitelist-enabled = false;
rpc-host-whitelist-enabled = false;
};
};
jackett = {
enable = true;
openFirewall = true;

View File

@@ -153,7 +153,20 @@ in
useACMEHost = lib.my.pubDomain;
};
"jackett.${lib.my.pubDomain}" = mkMerge [
"torrents-test.${lib.my.pubDomain}" = mkMerge [
{
locations."/" = mkMerge [
{
proxyPass = "http://jackflix-ctr.${config.networking.domain}:9091";
}
(ssoLoc "generic")
];
useACMEHost = lib.my.pubDomain;
}
(ssoServer "generic")
];
"jackett-test.${lib.my.pubDomain}" = mkMerge [
{
locations."/" = mkMerge [
{