mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
feat(mediabox): remove jackett, replace with prowlarr
This commit is contained in:
parent
f407b3bba2
commit
15f5b7e9af
2 changed files with 47 additions and 31 deletions
|
|
@ -38,7 +38,9 @@ in {
|
|||
nixos.radarr
|
||||
nixos.sonarr
|
||||
nixos.bazarr
|
||||
nixos.jackett
|
||||
nixos.lidarr
|
||||
nixos.readarr
|
||||
nixos.prowlarr
|
||||
];
|
||||
|
||||
sops.secrets.cloudflare_mediabox_tunnel = {
|
||||
|
|
@ -52,13 +54,16 @@ in {
|
|||
default = "http_status:404";
|
||||
credentialsFile = config.sops.secrets.cloudflare_mediabox_tunnel.path;
|
||||
ingress = {
|
||||
"tautulli.gensokyo.zone".service = "http://localhost:${toString tautulli.port}";
|
||||
"ombi.gensokyo.zone".service = "http://localhost:${toString ombi.port}";
|
||||
"sonarr.gensokyo.zone".service = "http://localhost:${toString sonarr.port}";
|
||||
"radarr.gensokyo.zone".service = "http://localhost:${toString radarr.port}";
|
||||
"bazarr.gensokyo.zone".service = "http://localhost:${toString bazarr.listenPort}";
|
||||
"jackett.gensokyo.zone".service = "http://localhost:${toString jackett.port}";
|
||||
"deluge.gensokyo.zone".service = "http://localhost:${toString deluge.web.port}";
|
||||
"tautulli.gensokyo.zone".service = "http://localhost:${toString config.services.tautulli.port}";
|
||||
"ombi.gensokyo.zone".service = "http://localhost:${toString config.services.ombi.port}";
|
||||
"sonarr.gensokyo.zone".service = "http://localhost:8989";
|
||||
"radarr.gensokyo.zone".service = "http://localhost:7878";
|
||||
"bazarr.gensokyo.zone".service = "http://localhost:6767";
|
||||
"lidarr.gensokyo.zone".service = "http://localhost:8686";
|
||||
"readarr.gensokyo.zone".service = "http://localhost:8787";
|
||||
"prowlarr.gensokyo.zone".service = "http://localhost:9696";
|
||||
"jackett.gensokyo.zone".service = "http://localhost:9117";
|
||||
"deluge.gensokyo.zone".service = "http://localhost:${toString config.services.deluge.web.port}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -74,12 +79,15 @@ in {
|
|||
path = kyuuto-library;
|
||||
mountPoint = kyuuto-library;
|
||||
subdirectories =
|
||||
mapAttrsToList (_: { hostPath, ... }:
|
||||
mapAttrsToList (
|
||||
_: {hostPath, ...}:
|
||||
removePrefix "${kyuuto-library}/" hostPath
|
||||
) plexLibrary
|
||||
)
|
||||
plexLibrary
|
||||
++ ["tlmc" "music-raw"];
|
||||
};
|
||||
in [ libraryDir ] ++ map mkLibraryDir [ "tlmc" "music-raw" "lewd" ];
|
||||
in
|
||||
[libraryDir] ++ map mkLibraryDir ["tlmc" "music-raw" "lewd"];
|
||||
};
|
||||
|
||||
hardware.opengl = {
|
||||
|
|
@ -92,18 +100,24 @@ in {
|
|||
fsType = "none";
|
||||
options = ["bind" "nofail"];
|
||||
};
|
||||
fsPlex = mapAttrs (_: { hostPath, ... }: mkMerge [
|
||||
fsPlex = mapAttrs (_: {hostPath, ...}:
|
||||
mkMerge [
|
||||
bind
|
||||
{
|
||||
device = hostPath;
|
||||
}
|
||||
]) plexLibrary;
|
||||
])
|
||||
plexLibrary;
|
||||
fsDeluge = {
|
||||
"${deluge.downloadDir}" = mkIf deluge.enable (mkMerge [ bind {
|
||||
"${deluge.downloadDir}" = mkIf deluge.enable (mkMerge [
|
||||
bind
|
||||
{
|
||||
device = kyuuto + "/downloads/deluge/download";
|
||||
} ]);
|
||||
}
|
||||
]);
|
||||
};
|
||||
in mkMerge [
|
||||
in
|
||||
mkMerge [
|
||||
fsPlex
|
||||
(mkIf deluge.enable fsDeluge)
|
||||
];
|
||||
|
|
|
|||
|
|
@ -75,8 +75,10 @@ module "mediabox" {
|
|||
"deluge",
|
||||
"sonarr",
|
||||
"radarr",
|
||||
"jackett",
|
||||
"bazarr",
|
||||
"lidarr",
|
||||
"radarr",
|
||||
"prowlarr",
|
||||
"tautulli",
|
||||
"ombi",
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue