feat(bazarr): only use one instance
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
9a57b0b425
commit
31a3cfcaca
8 changed files with 24 additions and 69 deletions
|
@ -125,10 +125,6 @@ in {
|
||||||
|
|
||||||
subDirectories = {
|
subDirectories = {
|
||||||
bazarr.reverseProxy = "${nosIP}:6767";
|
bazarr.reverseProxy = "${nosIP}:6767";
|
||||||
bazarr-french = {
|
|
||||||
subDirName = "bafrr";
|
|
||||||
reverseProxy = "${nosIP}:6766";
|
|
||||||
};
|
|
||||||
|
|
||||||
prowlarr.reverseProxy = "${nosIP}:9696";
|
prowlarr.reverseProxy = "${nosIP}:9696";
|
||||||
radarr.reverseProxy = "${nosIP}:7878";
|
radarr.reverseProxy = "${nosIP}:7878";
|
||||||
|
|
|
@ -13,8 +13,7 @@ in {
|
||||||
./modules/mergerfs.nix
|
./modules/mergerfs.nix
|
||||||
./modules/qbittorrent
|
./modules/qbittorrent
|
||||||
./modules/snapraid.nix
|
./modules/snapraid.nix
|
||||||
./modules/subtitles/cleanup.nix
|
./modules/subtitles
|
||||||
./modules/subtitles/syncing.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
vars = {
|
vars = {
|
||||||
|
|
|
@ -155,18 +155,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
|
||||||
"bazarr french" = rec {
|
|
||||||
href = "https://lan.nelim.org/bafrr";
|
|
||||||
icon = "bazarr.png";
|
|
||||||
description = "fetches subs";
|
|
||||||
widget = {
|
|
||||||
type = "bazarr";
|
|
||||||
url = href;
|
|
||||||
key = "{{HOMEPAGE_VAR_BAZARRFR_API}}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
prowlarr = rec {
|
prowlarr = rec {
|
||||||
href = "https://lan.nelim.org/prowlarr";
|
href = "https://lan.nelim.org/prowlarr";
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
|
|
||||||
rwPath = rwDataDir + "/media/bazarr";
|
rwPath = rwDataDir + "/media/bazarr";
|
||||||
in {
|
in {
|
||||||
arion.projects."bazarr" = {
|
arion.projects."bazarr"."bazarr" = {
|
||||||
"bazarr" = {
|
|
||||||
image = ./images/bazarr.nix;
|
image = ./images/bazarr.nix;
|
||||||
restart = "always";
|
restart = "always";
|
||||||
|
|
||||||
|
@ -25,33 +24,7 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
deploy.resources.limits.cpus = "0.5";
|
deploy.resources.limits.cpus = "2";
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
"bazarr-fr" = {
|
|
||||||
image = ./images/bazarr.nix;
|
|
||||||
restart = "always";
|
|
||||||
|
|
||||||
environment = {
|
|
||||||
PUID = "1000";
|
|
||||||
PGID = "1000";
|
|
||||||
TZ = "America/New_York";
|
|
||||||
};
|
|
||||||
|
|
||||||
extra_hosts = ["lan.nelim.org=10.0.0.130"];
|
|
||||||
ports = [
|
|
||||||
"6766:6767"
|
|
||||||
];
|
|
||||||
|
|
||||||
volumes = [
|
|
||||||
"${rwPath}/data-fr:/config"
|
|
||||||
"/data:/data"
|
|
||||||
];
|
|
||||||
|
|
||||||
extraOptions = {
|
|
||||||
deploy.resources.limits.cpus = "0.5";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
6
devices/nos/modules/subtitles/default.nix
Normal file
6
devices/nos/modules/subtitles/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{...}: {
|
||||||
|
imports = [
|
||||||
|
./cleanup.nix
|
||||||
|
./syncing.nix
|
||||||
|
];
|
||||||
|
}
|
|
@ -22,13 +22,6 @@ in {
|
||||||
exec ${lib.getExe bbPkg} --config ${config.sops.secrets.bazarr-bulk.path} "$@"
|
exec ${lib.getExe bbPkg} --config ${config.sops.secrets.bazarr-bulk.path} "$@"
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
||||||
(pkgs.writeShellApplication {
|
|
||||||
name = "bb-fr";
|
|
||||||
text = ''
|
|
||||||
exec ${lib.getExe bbPkg} --config ${config.sops.secrets.bazarr-bulk-fr.path} "$@"
|
|
||||||
'';
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd = {
|
systemd = {
|
||||||
|
|
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
BIN
flake.nix
BIN
flake.nix
Binary file not shown.
Loading…
Reference in a new issue