mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 11:12:09 +02:00
update nixarr conf
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> Former-commit-id: 012e81f99509ff0756c85581292fc641c0528761
This commit is contained in:
@@ -1,33 +1,44 @@
|
|||||||
{ config, ... }:
|
{config, ...}: let
|
||||||
let
|
|
||||||
domain = "hadi.diy";
|
domain = "hadi.diy";
|
||||||
mkVirtualHost = name: port: {
|
mkVirtualHost = port: {
|
||||||
useACMEHost = domain;
|
useACMEHost = domain;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/" = { proxyPass = "http://127.0.0.1:${toString port}"; };
|
locations."/" = {proxyPass = "http://127.0.0.1:${toString port}";};
|
||||||
};
|
};
|
||||||
|
my-username = config.var.username;
|
||||||
in {
|
in {
|
||||||
|
# Add my user to the media group
|
||||||
|
users.users."${my-username}".extraGroups = ["media"];
|
||||||
|
|
||||||
|
# Add my secrets
|
||||||
|
sops.secrets = {
|
||||||
|
recyclarr = {
|
||||||
|
owner = "recyclarr";
|
||||||
|
mode = "0777";
|
||||||
|
};
|
||||||
|
wireguard-pia = {
|
||||||
|
group = "media";
|
||||||
|
mode = "0600";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
nixarr = {
|
nixarr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
vpn = {
|
vpn = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wgConf = config.sops.secrets.wireguard-pia.path;
|
wgConf = config.sops.secrets.wireguard-pia.path;
|
||||||
};
|
};
|
||||||
mediaDir = "/data/media";
|
|
||||||
stateDir = "/data/.state/nixarr";
|
|
||||||
|
|
||||||
jellyfin.enable = true;
|
jellyfin.enable = true;
|
||||||
jellyseerr.enable = true;
|
jellyseerr.enable = true;
|
||||||
prowlarr.enable = true;
|
prowlarr.enable = true;
|
||||||
radarr.enable = true;
|
radarr.enable = true;
|
||||||
sonarr.enable = true;
|
sonarr.enable = true;
|
||||||
bazarr = {
|
bazarr.enable = true;
|
||||||
enable = true;
|
|
||||||
vpn.enable = true;
|
|
||||||
};
|
|
||||||
transmission = {
|
transmission = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraSettings = { trash-original-torrent-files = true; };
|
extraSettings = {trash-original-torrent-files = true;};
|
||||||
vpn.enable = true;
|
vpn.enable = true;
|
||||||
};
|
};
|
||||||
recyclarr = {
|
recyclarr = {
|
||||||
@@ -37,12 +48,12 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts = {
|
services.nginx.virtualHosts = {
|
||||||
"jellyfin.${domain}" = mkVirtualHost "jellyfin" 8096;
|
"jellyfin.${domain}" = mkVirtualHost 8096;
|
||||||
"jellyseerr.${domain}" = mkVirtualHost "jellyseerr" 5055;
|
"jellyseerr.${domain}" = mkVirtualHost 5055;
|
||||||
"bazarr.${domain}" = mkVirtualHost "bazarr" 6767;
|
"bazarr.${domain}" = mkVirtualHost 6767;
|
||||||
"prowlarr.${domain}" = mkVirtualHost "prowlarr" 9696;
|
"prowlarr.${domain}" = mkVirtualHost 9696;
|
||||||
"radarr.${domain}" = mkVirtualHost "radarr" 7878;
|
"radarr.${domain}" = mkVirtualHost 7878;
|
||||||
"sonarr.${domain}" = mkVirtualHost "sonarr" 8989;
|
"sonarr.${domain}" = mkVirtualHost 8989;
|
||||||
"transmission.${domain}" = mkVirtualHost "transmission" 9091;
|
"transmission.${domain}" = mkVirtualHost 9091;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user