diff --git a/profiles/homeserver.nix b/profiles/homeserver.nix index ceaea09..3babf62 100644 --- a/profiles/homeserver.nix +++ b/profiles/homeserver.nix @@ -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; }; diff --git a/system/podman/servarr/default.nix b/system/podman/servarr/default.nix index f071e2c..a461fb7 100644 --- a/system/podman/servarr/default.nix +++ b/system/podman/servarr/default.nix @@ -8,5 +8,6 @@ ./bazarr.nix ./radarr.nix ./rdtclient.nix + ./recyclarr.nix ]; } diff --git a/system/podman/servarr/recyclarr.nix b/system/podman/servarr/recyclarr.nix index 15fece8..68f1243 100644 --- a/system/podman/servarr/recyclarr.nix +++ b/system/podman/servarr/recyclarr.nix @@ -34,21 +34,45 @@ in owner = user.name; path = "${configVolume}/recyclarr.yml"; content = builtins.readFile ((pkgs.formats.yaml { }).generate "recyclarr.yml" { + 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 = [ + # x264 only. For 720p and 1080p releases. + "2899d84dc9372de3408e6d8cc18e9666" + ]; + } + ]; + }; sonarr = { - tv = { - base_url = "http://sonarr:8989"; - api_key = config.sops.placeholders."servarr/api_keys/sonarr"; - quality_definition.type = "series"; - release_profiles = [ - { - trash_ids = [ ]; - } - ]; - }; + # 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" + ]; + } + ]; }; }; });