Files
nixy/server-modules/arr.nix
2026-02-01 18:22:18 +01:00

66 lines
1.7 KiB
Nix

# *arr is a collection of media management applications.
# See https://github.com/rasmus-kirk/nixarr
# Setup guide: https://nixarr.com/wiki/setup/
{config, ...}: let
username = config.var.username;
in {
# Add my secrets
sops.secrets = {
recyclarr = {
owner = "recyclarr";
mode = "0777";
};
wireguard-pia = {
group = "media";
mode = "0600";
};
};
nixarr = {
enable = true;
mediaUsers = [username];
mediaDir = "/mnt/data/media";
stateDir = "/mnt/data/.state/nixarr";
vpn = {
enable = true;
wgConf = config.sops.secrets.wireguard-pia.path;
};
jellyfin.enable = true;
jellyseerr.enable = true;
prowlarr.enable = true;
radarr.enable = true;
sonarr.enable = true;
bazarr.enable = true;
readarr.enable = true;
transmission = {
enable = true;
extraSettings = {
trash-original-torrent-files = true;
rpc-whitelist-enabled = false;
rpc-host-whitelist-enabled = false;
};
vpn.enable = true;
};
recyclarr = {
enable = true;
configFile = config.sops.secrets.recyclarr.path;
};
};
users.users.jellyfin.extraGroups = ["video" "render"];
services.cloudflared.tunnels."f7c8f777-a36c-4b9a-b6e3-6a112bd43e73".ingress = {
"media.hadi.diy" = "http://localhost:8096";
"demandemedia.hadi.diy" = "http://localhost:5055";
"bazarr.hadi.diy" = "http://localhost:6767";
"prowlarr.hadi.diy" = "http://localhost:9696";
"radarr.hadi.diy" = "http://localhost:7878";
"sonarr.hadi.diy" = "http://localhost:8989";
"transmission.hadi.diy" = "http://localhost:9091";
"readarr.hadi.diy" = "http://localhost:8787";
};
}