prowlarr: init
This commit is contained in:
@@ -32,6 +32,8 @@
|
|||||||
./services/jellyfin-qbittorrent-monitor.nix
|
./services/jellyfin-qbittorrent-monitor.nix
|
||||||
./services/bitmagnet.nix
|
./services/bitmagnet.nix
|
||||||
|
|
||||||
|
./services/arr/prowlarr.nix
|
||||||
|
|
||||||
./services/soulseek.nix
|
./services/soulseek.nix
|
||||||
|
|
||||||
./services/ups.nix
|
./services/ups.nix
|
||||||
|
|||||||
@@ -125,6 +125,7 @@
|
|||||||
ntfy = 2586;
|
ntfy = 2586;
|
||||||
livekit = 7880;
|
livekit = 7880;
|
||||||
lk_jwt = 8081;
|
lk_jwt = 8081;
|
||||||
|
prowlarr = 9696;
|
||||||
};
|
};
|
||||||
|
|
||||||
https = {
|
https = {
|
||||||
@@ -192,6 +193,10 @@
|
|||||||
dataDir = services_dir + "/syncthing";
|
dataDir = services_dir + "/syncthing";
|
||||||
signalBackupDir = "/${zpool_ssds}/bak/signal";
|
signalBackupDir = "/${zpool_ssds}/bak/signal";
|
||||||
grayjayBackupDir = "/${zpool_ssds}/bak/grayjay";
|
grayjayBackupDir = "/${zpool_ssds}/bak/grayjay";
|
||||||
|
|
||||||
|
prowlarr = {
|
||||||
|
dataDir = services_dir + "/prowlarr";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
26
services/arr/prowlarr.nix
Normal file
26
services/arr/prowlarr.nix
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
service_configs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
(lib.serviceMountWithZpool "prowlarr" service_configs.zpool_ssds [
|
||||||
|
service_configs.prowlarr.dataDir
|
||||||
|
])
|
||||||
|
(lib.vpnNamespaceOpenPort service_configs.ports.prowlarr "prowlarr")
|
||||||
|
];
|
||||||
|
|
||||||
|
services.prowlarr = {
|
||||||
|
enable = true;
|
||||||
|
dataDir = service_configs.prowlarr.dataDir;
|
||||||
|
settings.server.port = service_configs.ports.prowlarr;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.caddy.virtualHosts."prowlarr.${service_configs.https.domain}".extraConfig = ''
|
||||||
|
import ${config.age.secrets.caddy_auth.path}
|
||||||
|
reverse_proxy ${config.vpnNamespaces.wg.namespaceAddress}:${builtins.toString service_configs.ports.prowlarr}
|
||||||
|
'';
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user