feat: Added unified servarr configs
This commit is contained in:
@@ -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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
23
nixos/tsuba/services/servarr.nix
Normal file
23
nixos/tsuba/services/servarr.nix
Normal 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";
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user