servarr: enabled recyclarr

This commit is contained in:
Tigor Hutasuhut 2024-07-04 15:46:21 +07:00
parent f0e39cef87
commit 22444e618a
3 changed files with 37 additions and 12 deletions

View file

@ -33,7 +33,7 @@
redmage-demo.enable = true;
qbittorrent.enable = true;
servarr.enable = true;
servarr.recyclarr.enable = false;
servarr.recyclarr.enable = true;
servarr.real-debrid-manager.enable = false;
servarr.rdtclient.enable = true;
};

View file

@ -8,5 +8,6 @@
./bazarr.nix
./radarr.nix
./rdtclient.nix
./recyclarr.nix
];
}

View file

@ -34,21 +34,45 @@ in
owner = user.name;
path = "${configVolume}/recyclarr.yml";
content = builtins.readFile ((pkgs.formats.yaml { }).generate "recyclarr.yml" {
sonarr = {
tv = {
base_url = "http://sonarr:8989";
api_key = config.sops.placeholders."servarr/api_keys/sonarr";
quality_definition.type = "series";
release_profiles = [
radarr.movies = {
base_url = "http://radarr:7878";
api_key = config.sops.placeholder."servarr/api_keys/radarr";
quality_definition.type = "movie";
delete_old_custom_formats = true;
custom_formats = [
{
trash_ids = [ ];
trash_ids = [
# x264 only. For 720p and 1080p releases.
"2899d84dc9372de3408e6d8cc18e9666"
];
}
];
};
sonarr = {
# tv = {
# base_url = "http://sonarr:8989";
# api_key = config.sops.placeholder."servarr/api_keys/sonarr";
# quality_definition.type = "series";
# custom_formats = [ ];
# };
anime = {
base_url = "http://sonarr-anime:8989";
api_key = config.sops.placeholders."servarr/api_keys/sonarr-anime";
api_key = config.sops.placeholder."servarr/api_keys/sonarr-anime";
quality_definition.type = "anime";
delete_old_custom_formats = true;
custom_formats = [
# sudo podman run --rm ghcr.io/recyclarr/recyclarr list custom-formats sonarr
{
trash_ids = [
# Anime Web Tier 02 (Top FanSubs)
"19180499de5ef2b84b6ec59aae444696"
# Anime Web Tier 03 (Official Subs)
"c27f2ae6a4e82373b0f1da094e2489ad"
# Anime web tier 04 (Official Subs)
"4fd5528a3a8024e6b49f9c67053ea5f3"
];
}
];
};
};
});