mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 11:12:09 +02:00
64 lines
1.6 KiB
Nix
64 lines
1.6 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;
|
|
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."a1dfa315-7fc3-4a65-8c02-8387932c35c3".ingress = {
|
|
"media.hadi.icu" = "http://localhost:8096";
|
|
"demandemedia.hadi.icu" = "http://localhost:5055";
|
|
"bazarr.hadi.icu" = "http://localhost:6767";
|
|
"prowlarr.hadi.icu" = "http://localhost:9696";
|
|
"radarr.hadi.icu" = "http://localhost:7878";
|
|
"sonarr.hadi.icu" = "http://localhost:8989";
|
|
"transmission.hadi.icu" = "http://localhost:9091";
|
|
};
|
|
}
|