{ ... }: { # Sonarr (TV automation). UI: http://:8989 services.sonarr.enable = true; # Ensure Sonarr can manage the same libraries as Jellyfin. users.groups.sonarr = { }; users.users.sonarr = { isSystemUser = true; group = "sonarr"; extraGroups = [ "media" ]; }; networking.firewall.allowedTCPPorts = [ 8989 ]; }