Merge pull request #72 from elsbrock/fixes

fix: remove hardcoded torrenter user and missing globals reference
This commit is contained in:
Rasmus Kirk
2025-06-22 18:24:11 +00:00
committed by GitHub
+1 -1
View File
@@ -31,7 +31,7 @@ with lib; let
text = '' text = ''
touch ${cfg.stateDir}/prowlarr-api-key touch ${cfg.stateDir}/prowlarr-api-key
chmod 400 ${cfg.stateDir}/prowlarr-api-key chmod 400 ${cfg.stateDir}/prowlarr-api-key
chown torrenter ${cfg.stateDir}/prowlarr-api-key chown ${globals.transmission.user} ${cfg.stateDir}/prowlarr-api-key
xq -r '.Config.ApiKey' "${nixarr.prowlarr.stateDir}/config.xml" > "${cfg.stateDir}/prowlarr-api-key" xq -r '.Config.ApiKey' "${nixarr.prowlarr.stateDir}/config.xml" > "${cfg.stateDir}/prowlarr-api-key"
''; '';
}; };