Compare commits
4 Commits
b8b8dd58e1
...
5709333bcb
| Author | SHA1 | Date | |
|---|---|---|---|
| 5709333bcb | |||
| eb88e7af38 | |||
| 4e19e67356 | |||
| f6804a76b2 |
@@ -37,7 +37,6 @@
|
|||||||
./services/radarr.nix
|
./services/radarr.nix
|
||||||
./services/bazarr.nix
|
./services/bazarr.nix
|
||||||
./services/jellyseerr.nix
|
./services/jellyseerr.nix
|
||||||
./services/recyclarr.nix
|
|
||||||
|
|
||||||
./services/soulseek.nix
|
./services/soulseek.nix
|
||||||
|
|
||||||
|
|||||||
@@ -219,10 +219,6 @@
|
|||||||
configDir = services_dir + "/jellyseerr";
|
configDir = services_dir + "/jellyseerr";
|
||||||
};
|
};
|
||||||
|
|
||||||
recyclarr = {
|
|
||||||
dataDir = services_dir + "/recyclarr";
|
|
||||||
};
|
|
||||||
|
|
||||||
media = {
|
media = {
|
||||||
moviesDir = torrents_path + "/media/movies";
|
moviesDir = torrents_path + "/media/movies";
|
||||||
tvDir = torrents_path + "/media/tv";
|
tvDir = torrents_path + "/media/tv";
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
users.groups.jellyseerr = { };
|
users.groups.jellyseerr = { };
|
||||||
|
|
||||||
services.caddy.virtualHosts."jellyseerr.${service_configs.https.domain}".extraConfig = ''
|
services.caddy.virtualHosts."jellyseerr.${service_configs.https.domain}".extraConfig = ''
|
||||||
# import ${config.age.secrets.caddy_auth.path}
|
import ${config.age.secrets.caddy_auth.path}
|
||||||
reverse_proxy :${builtins.toString service_configs.ports.jellyseerr}
|
reverse_proxy :${builtins.toString service_configs.ports.jellyseerr}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,39 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
service_configs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
(lib.serviceMountWithZpool "recyclarr" service_configs.zpool_ssds [
|
|
||||||
service_configs.recyclarr.dataDir
|
|
||||||
])
|
|
||||||
];
|
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
|
||||||
"d ${service_configs.recyclarr.dataDir} 0755 root root -"
|
|
||||||
"d ${service_configs.recyclarr.dataDir}/data 0755 root root -"
|
|
||||||
];
|
|
||||||
|
|
||||||
systemd.services.recyclarr = {
|
|
||||||
description = "Recyclarr TRaSH Guides Sync";
|
|
||||||
after = [ "network-online.target" "radarr.service" "sonarr.service" ];
|
|
||||||
wants = [ "network-online.target" ];
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "oneshot";
|
|
||||||
ExecStart = "${pkgs.recyclarr}/bin/recyclarr sync --config ${service_configs.recyclarr.dataDir}/recyclarr.yml --app-data ${service_configs.recyclarr.dataDir}/data";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.timers.recyclarr = {
|
|
||||||
description = "Run Recyclarr daily";
|
|
||||||
wantedBy = [ "timers.target" ];
|
|
||||||
timerConfig = {
|
|
||||||
OnCalendar = "daily";
|
|
||||||
Persistent = true;
|
|
||||||
RandomizedDelaySec = "1h";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user