nixdots/hosts/pirate/nixarr.nix
2026-05-06 16:04:54 +03:00

65 lines
2 KiB
Nix

{
nixarr = {
enable = true;
# These two values are also the default, but you can set them to whatever
# else you want
# WARNING: Do _not_ set them to `/home/user/whatever`, it will not work!
mediaDir = "/data/media";
stateDir = "/data/media/.state/nixarr";
vpn = {
enable = false;
# WARNING: This file must _not_ be in the config git directory
# You can usually get this wireguard file from your VPN provider
wgConf = "/data/.secret/wg.conf";
};
jellyfin = {
enable = true;
# These options set up a nginx HTTPS reverse proxy, so you can access
# Jellyfin on your domain with HTTPS
expose.https = {
enable = true;
domainName = "your.domain.com";
acmeMail = "your@email.com"; # Required for ACME-bot
};
};
qbittorrent = {
enable = true;
#peerPort = 50000; # Set this to the port forwarded by your VPN
webuiPort = 5252; # Port for the qui WebUI (default)
openFirewall = true;
# Disable DHT/PeX for private trackers (optional)
# privateTrackers.disableDhtPex = true;
# Extra qBittorrent configuration (optional)
# See: https://github.com/qbittorrent/qBittorrent/wiki/Explanation-of-Options-in-qBittorrent
extraConfig = {
BitTorrent = {
"Session\\MaxActiveDownloads" = 3;
"Session\\MaxActiveTorrents" = 5;
};
};
};
prowlarr = {
enable = true;
openFirewall = true;
settings-sync.enable-nixarr-apps = true;
# Define tags for organizing indexers
};
# It is possible for this module to run the *Arrs through a VPN, but it
# is generally not recommended, as it can cause rate-limiting issues.
bazarr.enable = false;
lidarr.enable = false;
#prowlarr.enable = true;
radarr.enable = false;
sonarr.enable = false;
};
services.prowlarr.settings.auth.required = "DisabledForLocalAddresses";
networking.firewall.allowedTCPPorts = [6881];
}