From 48efd7fcf72ad103171d2c42cdaeb2fee335b5d3 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Wed, 15 Apr 2026 18:08:22 -0400 Subject: [PATCH] qbittorent: fix (?) perms --- services/qbittorrent.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/qbittorrent.nix b/services/qbittorrent.nix index 666385d..0591e18 100644 --- a/services/qbittorrent.nix +++ b/services/qbittorrent.nix @@ -23,7 +23,9 @@ in (lib.serviceFilePerms "qbittorrent" [ # 0770: group (media) needs write to delete files during upgrades — # Radarr/Sonarr must unlink the old file before placing the new one. - "Z ${config.services.qbittorrent.serverConfig.Preferences.Downloads.SavePath} 0770 ${config.services.qbittorrent.user} ${service_configs.media_group}" + # Non-recursive (z not Z): UMask=0007 ensures new files get correct perms. + # A recursive Z rule would walk millions of files on the HDD pool at every boot. + "z ${config.services.qbittorrent.serverConfig.Preferences.Downloads.SavePath} 0770 ${config.services.qbittorrent.user} ${service_configs.media_group}" "z ${config.services.qbittorrent.serverConfig.Preferences.Downloads.TempPath} 0700 ${config.services.qbittorrent.user} ${config.services.qbittorrent.group}" "Z ${config.services.qbittorrent.profileDir} 0700 ${config.services.qbittorrent.user} ${config.services.qbittorrent.group}" ])