From 6b82fc1bed5d5489863d668c2d68cbfd347fb714 Mon Sep 17 00:00:00 2001 From: Satria Date: Tue, 3 Mar 2026 14:25:13 +0700 Subject: [PATCH] arr stack in wip --- modules/system/homelab/dns.nix | 4 +-- modules/system/homelab/media.nix | 45 ++++++++++++++++++++++++++++++-- modules/system/homelab/proxy.nix | 7 +++++ modules/system/server.nix | 8 +++--- 4 files changed, 56 insertions(+), 8 deletions(-) diff --git a/modules/system/homelab/dns.nix b/modules/system/homelab/dns.nix index a004b47..907645e 100644 --- a/modules/system/homelab/dns.nix +++ b/modules/system/homelab/dns.nix @@ -9,8 +9,8 @@ [ "proxy.${homelab.domain}" "main.dns.${homelab.domain}" ] [ "*.proxy.${homelab.domain}" "proxy.${homelab.domain}" ] - [ "lancache.steamcontent.com" "main.dns.${homelab.domain}" ] - [ "steam.cache.lancache.net" "main.dns.${homelab.domain}" ] + # [ "lancache.steamcontent.com" "main.dns.${homelab.domain}" ] + # [ "steam.cache.lancache.net" "main.dns.${homelab.domain}" ] ]; blacklist = [ "https://adaway.org/hosts.txt" diff --git a/modules/system/homelab/media.nix b/modules/system/homelab/media.nix index 49afe3d..949e6cd 100644 --- a/modules/system/homelab/media.nix +++ b/modules/system/homelab/media.nix @@ -1,3 +1,44 @@ -{ ... }: { - +{ pkgs, ... }: { + # WIP: declaratively integrate media services into homelab configuration + environment.systemPackages = with pkgs; [ + jellyfin jellyfin-web jellyfin-ffmpeg + ]; + services = { + jellyfin = { + enable = true; + hardwareAcceleration.enable = true; + }; + jellyseerr = { + enable = true; + port = 5055; + }; + radarr = { + enable = true; + settings = { + server = { + port = 7878; + bindaddress = "127.0.0.1"; + }; + }; + }; + sonarr = { + enable = true; + server = { + port = 8989; + bindaddress = "127.0.0.1"; + }; + }; + qbittorrent = { + enable = true; + webuiPort = 8020; + }; + jackett = { + enable = true; + port = 9117; + }; + flaresolverr = { + enable = true; + port = 8191; + }; + }; } \ No newline at end of file diff --git a/modules/system/homelab/proxy.nix b/modules/system/homelab/proxy.nix index ad9c200..bf0b1ba 100644 --- a/modules/system/homelab/proxy.nix +++ b/modules/system/homelab/proxy.nix @@ -4,6 +4,13 @@ "dns" = { dest = "http://localhost:8088"; auth = true; }; "ai" = { dest = "http://localhost:8080"; auth = true; }; + # "jsr" = { dest = "http://localhost:5055"; auth = false; }; + # "rdr" = { dest = "http://localhost:5055"; auth = false; }; + # "snr" = { dest = "http://localhost:5055"; auth = false; }; + # "qbt" = { dest = "http://localhost:8020"; auth = false; }; + # "jkt" = { dest = "http://localhost:9117"; auth = false; }; + # "media" = { dest = "http://localhost:8096"; auth = false; }; + "containers" = { dest = "http://localhost:5001"; auth = false; }; "auth" = { dest = "http://localhost:1411"; auth = false; }; "cdn" = { dest = "http://localhost:3000"; auth = false; }; diff --git a/modules/system/server.nix b/modules/system/server.nix index 1015f84..6b00a03 100644 --- a/modules/system/server.nix +++ b/modules/system/server.nix @@ -2,7 +2,7 @@ imports = lib.mkIf (config.specialisation != {}) [ ./homelab/containers.nix ./homelab/gallery.nix - ./homelab/media.nix + # ./homelab/media.nix # wip ./homelab/share.nix ./homelab/proxy.nix ./homelab/auth.nix @@ -12,9 +12,9 @@ ./homelab/ai.nix ./base.nix ]; - + specialisation.safe-mode.configuration = {}; - + virtualisation = { oci-containers.backend = "docker"; docker = { @@ -28,4 +28,4 @@ networkmanager.dns = "none"; nameservers = lib.mkForce [ "127.0.0.1" ]; }; -} \ No newline at end of file +}