From 605d9c53f7f0fceeae5e4db9981642c9a84fc7df Mon Sep 17 00:00:00 2001 From: ediblerope Date: Thu, 22 Jan 2026 09:39:31 +0000 Subject: [PATCH] Update sonarr.nix --- services/sonarr.nix | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/services/sonarr.nix b/services/sonarr.nix index a4fbc04..c9b4b81 100644 --- a/services/sonarr.nix +++ b/services/sonarr.nix @@ -12,30 +12,18 @@ group = "media"; }; - # Create a shared media group - users.groups.media = { - gid = 3000; # Fixed GID for consistency - }; - - # Add users to media group + # Media group is already created in qbittorrent-nox.nix + # Just make sure sonarr is in it users.users.sonarr = { isSystemUser = true; group = "media"; extraGroups = [ "media" ]; }; - - # Assuming qbittorrent-nox user exists, add to media group - users.users.qbittorrent-nox = { - extraGroups = [ "media" ]; - }; # Set up directory structure with proper permissions - # The key is that both sonarr and qbittorrent write to the same filesystem - # and both are in the media group with write permissions systemd.tmpfiles.rules = [ - # Downloads folder - qbittorrent writes here - "d /mnt/storage/torrents/downloads 0775 qbittorrent-nox media -" - "Z /mnt/storage/torrents/downloads 0775 qbittorrent-nox media -" # Recursively fix existing + # Downloads folder - qbittorrent writes here (already in qbittorrent-nox.nix) + "Z /mnt/storage/torrents/downloads 0775 qbittorrent media -" # Media folders - sonarr writes here "d /mnt/storage/torrents/shows 0775 sonarr media -"