From d26de614dcd903f15e572599a442eb694686dcf9 Mon Sep 17 00:00:00 2001 From: rasmus-kirk Date: Wed, 7 Aug 2024 10:16:14 +0200 Subject: [PATCH] mediaDir fix --- nixarr/jellyfin/default.nix | 10 +++++----- nixarr/sabnzbd/default.nix | 16 ++++++++-------- nixarr/transmission/default.nix | 16 ++++++++-------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/nixarr/jellyfin/default.nix b/nixarr/jellyfin/default.nix index 85a8033..ddf9736 100644 --- a/nixarr/jellyfin/default.nix +++ b/nixarr/jellyfin/default.nix @@ -212,11 +212,11 @@ in "d '${cfg.stateDir}' 0700 streamer root - -" # Media Dirs - "d '${cfg.mediaDir}/library' 0775 streamer media - -" - "d '${cfg.mediaDir}/library/shows' 0775 streamer media - -" - "d '${cfg.mediaDir}/library/movies' 0775 streamer media - -" - "d '${cfg.mediaDir}/library/music' 0775 streamer media - -" - "d '${cfg.mediaDir}/library/books' 0775 streamer media - -" + "d '${nixarr.mediaDir}/library' 0775 streamer media - -" + "d '${nixarr.mediaDir}/library/shows' 0775 streamer media - -" + "d '${nixarr.mediaDir}/library/movies' 0775 streamer media - -" + "d '${nixarr.mediaDir}/library/music' 0775 streamer media - -" + "d '${nixarr.mediaDir}/library/books' 0775 streamer media - -" ]; # Always prioritise Jellyfin IO diff --git a/nixarr/sabnzbd/default.nix b/nixarr/sabnzbd/default.nix index e14a140..3627e16 100644 --- a/nixarr/sabnzbd/default.nix +++ b/nixarr/sabnzbd/default.nix @@ -181,14 +181,14 @@ in { "C ${cfg.stateDir}/sabnzbd.ini - - - - ${ini-base-config-file}" # Media dirs - "d '${cfg.mediaDir}/usenet' 0755 usenet media - -" - "d '${cfg.mediaDir}/usenet/.incomplete' 0755 usenet media - -" - "d '${cfg.mediaDir}/usenet/.watch' 0755 usenet media - -" - "d '${cfg.mediaDir}/usenet/manual' 0775 usenet media - -" - "d '${cfg.mediaDir}/usenet/liadarr' 0775 usenet media - -" - "d '${cfg.mediaDir}/usenet/radarr' 0775 usenet media - -" - "d '${cfg.mediaDir}/usenet/sonarr' 0775 usenet media - -" - "d '${cfg.mediaDir}/usenet/readarr' 0775 usenet media - -" + "d '${nixarr.mediaDir}/usenet' 0755 usenet media - -" + "d '${nixarr.mediaDir}/usenet/.incomplete' 0755 usenet media - -" + "d '${nixarr.mediaDir}/usenet/.watch' 0755 usenet media - -" + "d '${nixarr.mediaDir}/usenet/manual' 0775 usenet media - -" + "d '${nixarr.mediaDir}/usenet/liadarr' 0775 usenet media - -" + "d '${nixarr.mediaDir}/usenet/radarr' 0775 usenet media - -" + "d '${nixarr.mediaDir}/usenet/sonarr' 0775 usenet media - -" + "d '${nixarr.mediaDir}/usenet/readarr' 0775 usenet media - -" ]; services.sabnzbd = { diff --git a/nixarr/transmission/default.nix b/nixarr/transmission/default.nix index 81aa56e..ed19f16 100644 --- a/nixarr/transmission/default.nix +++ b/nixarr/transmission/default.nix @@ -308,14 +308,14 @@ in { "d '${cfg.stateDir}/.config/transmission-daemon' 0750 torrenter cross-seed - -" # Media Dirs - "d '${cfg.mediaDir}/torrents' 0755 torrenter media - -" - "d '${cfg.mediaDir}/torrents/.incomplete' 0755 torrenter media - -" - "d '${cfg.mediaDir}/torrents/.watch' 0755 torrenter media - -" - "d '${cfg.mediaDir}/torrents/manual' 0755 torrenter media - -" - "d '${cfg.mediaDir}/torrents/lidarr' 0755 torrenter media - -" - "d '${cfg.mediaDir}/torrents/radarr' 0755 torrenter media - -" - "d '${cfg.mediaDir}/torrents/sonarr' 0755 torrenter media - -" - "d '${cfg.mediaDir}/torrents/readarr' 0755 torrenter media - -" + "d '${nixarr.mediaDir}/torrents' 0755 torrenter media - -" + "d '${nixarr.mediaDir}/torrents/.incomplete' 0755 torrenter media - -" + "d '${nixarr.mediaDir}/torrents/.watch' 0755 torrenter media - -" + "d '${nixarr.mediaDir}/torrents/manual' 0755 torrenter media - -" + "d '${nixarr.mediaDir}/torrents/lidarr' 0755 torrenter media - -" + "d '${nixarr.mediaDir}/torrents/radarr' 0755 torrenter media - -" + "d '${nixarr.mediaDir}/torrents/sonarr' 0755 torrenter media - -" + "d '${nixarr.mediaDir}/torrents/readarr' 0755 torrenter media - -" ]; util-nixarr.services.cross-seed = mkIf cfg-cross-seed.enable {