feat: Added unified servarr configs

This commit is contained in:
uttarayan21
2025-07-12 22:26:11 +05:30
parent 2981ca1143
commit fa718f5618
8 changed files with 55 additions and 19 deletions

View File

@@ -14,6 +14,7 @@
inputs inputs
// { // {
inherit device; inherit device;
unstablePkgs = inputs.nixpkgs.legacyPackages.${device.system};
}; };
system = device.system; system = device.system;
modules = [ modules = [
@@ -29,8 +30,8 @@
]; ];
} }
./configuration.nix ./configuration.nix
./disk-config.nix
./services ./services
./disk-config.nix
./${name}.nix ./${name}.nix
]; ];
} }

View File

@@ -18,7 +18,7 @@
(hetzner) { (hetzner) {
tls { tls {
propagation_timeout -1 propagation_timeout -1
propagation_delay 30s propagation_delay 120s
dns hetzner {env.HETZNER_API_KEY} dns hetzner {env.HETZNER_API_KEY}
} }
} }

View File

@@ -4,9 +4,10 @@
./samba.nix ./samba.nix
./jellyfin.nix ./jellyfin.nix
./caddy.nix ./caddy.nix
./sonarr.nix ./servarr.nix
./radarr.nix # ./sonarr.nix
./prowlarr.nix # ./radarr.nix
# ./prowlarr.nix
./deluge.nix ./deluge.nix
]; ];
} }

View File

@@ -1,6 +1,9 @@
{...}: { {...}: {
services = { services = {
deluge.enable = true; deluge = {
enable = true;
web.enable = true;
};
caddy = { caddy = {
virtualHosts."deluge.tsuba.darksailor.dev".extraConfig = '' virtualHosts."deluge.tsuba.darksailor.dev".extraConfig = ''
import hetzner import hetzner

View File

@@ -1,11 +1,12 @@
{...}: { {...}: {
services = { # services = {
# jellyseerr.enable = true;
# jellyfin.enable = true; # jellyfin.enable = true;
jellyseerr.enable = true; # caddy = {
caddy = { # virtualHosts."jellyfin.tsuba.darksailor.dev".extraConfig = ''
virtualHosts."jellyfin.tsuba.darksailor.dev".extraConfig = '' # import hetzner
reverse_proxy localhost:8096 # reverse_proxy localhost:8096
''; # '';
}; # };
}; # };
} }

View File

@@ -1,6 +1,9 @@
{...}: { {unstablePkgs, ...}: {
services = { services = {
prowlarr.enable = true; prowlarr = {
enable = true;
package = unstablePkgs.prowlarr;
};
caddy = { caddy = {
virtualHosts."prowlarr.tsuba.darksailor.dev".extraConfig = '' virtualHosts."prowlarr.tsuba.darksailor.dev".extraConfig = ''
import hetzner import hetzner

View File

@@ -0,0 +1,23 @@
{
unstablePkgs,
config,
...
}: let
mkServarr = name: {
${name} = {
enable = true;
package = unstablePkgs.${name};
};
caddy.virtualHosts."${name}.tsuba.darksailor.dev".extraConfig = ''
import hetzner
reverse_proxy localhost:${builtins.toString config.services.${name}.settings.server.port}
'';
};
in {
services =
mkServarr "radarr"
// mkServarr "sonarr"
// mkServarr "prowlarr";
# // mkServarr "readarr"
# // mkServarr "bazarr";
}

View File

@@ -1,6 +1,10 @@
{...}: { {unstablePkgs, ...}: {
services = { services = {
sonarr.enable = true; sonarr = {
enable = true;
package = unstablePkgs.sonarr;
};
caddy = { caddy = {
virtualHosts."sonarr.tsuba.darksailor.dev".extraConfig = '' virtualHosts."sonarr.tsuba.darksailor.dev".extraConfig = ''
import hetzner import hetzner