mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 19:12:11 +02:00
y
This commit is contained in:
43
server-modules/arr.nix
Normal file
43
server-modules/arr.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{ config, ... }:
|
||||
let
|
||||
domain = "hadi.diy";
|
||||
mkVirtualHost = name: port: {
|
||||
useACMEHost = domain;
|
||||
forceSSL = true;
|
||||
locations."/" = { proxyPass = "http://127.0.0.1:${toString port}"; };
|
||||
};
|
||||
in {
|
||||
nixarr = {
|
||||
enable = true;
|
||||
vpn = {
|
||||
enable = true;
|
||||
wgConf = config.sops.secrets.wireguard-pia.path;
|
||||
};
|
||||
mediaDir = "/data/media";
|
||||
stateDir = "/data/.state/nixarr";
|
||||
|
||||
jellyfin.enable = true;
|
||||
jellyseerr.enable = true;
|
||||
prowlarr.enable = true;
|
||||
radarr.enable = true;
|
||||
sonarr.enable = true;
|
||||
sabnzbd.enable = true;
|
||||
transmission = {
|
||||
enable = true;
|
||||
extraSettings = { trash-original-torrent-files = true; };
|
||||
vpn.enable = true;
|
||||
};
|
||||
|
||||
recyclarr.enable = true;
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts = {
|
||||
"jellyfin.${domain}" = mkVirtualHost "jellyfin" 8096;
|
||||
"jellyseerr.${domain}" = mkVirtualHost "jellyseerr" 5055;
|
||||
"prowlarr.${domain}" = mkVirtualHost "prowlarr" 9696;
|
||||
"radarr.${domain}" = mkVirtualHost "radarr" 7878;
|
||||
"sonarr.${domain}" = mkVirtualHost "sonarr" 8989;
|
||||
"sabnzbd.${domain}" = mkVirtualHost "sabnzbd" 8080;
|
||||
"transmission.${domain}" = mkVirtualHost "transmission" 9091;
|
||||
};
|
||||
}
|
||||
@@ -126,6 +126,43 @@ in {
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
type = "monitor";
|
||||
title = "*arr";
|
||||
cache = "1m";
|
||||
sites = [
|
||||
{
|
||||
title = "Jellyfin";
|
||||
url = "https://jellyfin.hadi.diy";
|
||||
icon = "si:jellyfin";
|
||||
}
|
||||
{
|
||||
title = "Radarr";
|
||||
url = "https://radarr.hadi.diy";
|
||||
icon = "si:radarr";
|
||||
}
|
||||
{
|
||||
title = "Sonarr";
|
||||
url = "https://sonarr.hadi.diy";
|
||||
icon = "si:sonarr";
|
||||
}
|
||||
{
|
||||
title = "Prowlarr";
|
||||
url = "https://prowlarr.hadi.diy";
|
||||
icon = "si:prowlarr";
|
||||
}
|
||||
{
|
||||
title = "SABnzbd";
|
||||
url = "https://sabnzbd.hadi.diy";
|
||||
icon = "si:sabnzbd";
|
||||
}
|
||||
{
|
||||
title = "Transmission";
|
||||
url = "https://transmission.hadi.diy";
|
||||
icon = "si:transmission";
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
type = "repository";
|
||||
repository = "anotherhadi/nixy";
|
||||
|
||||
Reference in New Issue
Block a user