From 938f2026349bfc087b58d03f308c3e6d37ec3d8b Mon Sep 17 00:00:00 2001 From: Chris Dombroski Date: Wed, 2 Oct 2024 22:00:08 -0400 Subject: [PATCH] permission cleanup --- nixos-modules/docker-jellyfin.nix | 3 +++ nixos-modules/docker-qbittorrent.nix | 4 +++- nixos-modules/docker-radarr.nix | 7 ++++++- nixos-modules/docker-sonarr.nix | 7 ++++++- 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/nixos-modules/docker-jellyfin.nix b/nixos-modules/docker-jellyfin.nix index 0b95c4d..b4be9d8 100644 --- a/nixos-modules/docker-jellyfin.nix +++ b/nixos-modules/docker-jellyfin.nix @@ -24,6 +24,9 @@ TAILSCALE_SERVE_PORT = "8096"; TAILSCALE_SERVE_MODE = "http"; TZ = "America/New_York"; + PUID = "920"; + PGID = "911"; + UMASK = "002"; }; environmentFiles = [ config.sops.templates."docker.env".path ]; labels.swag = "enable"; diff --git a/nixos-modules/docker-qbittorrent.nix b/nixos-modules/docker-qbittorrent.nix index 51713cd..7bfb1ce 100644 --- a/nixos-modules/docker-qbittorrent.nix +++ b/nixos-modules/docker-qbittorrent.nix @@ -11,7 +11,9 @@ ]; environment = { TZ = "America/New_York"; - UMASK_SET = "000"; + PUID = "910"; + PGID = "911"; + UMASK = "002"; DELUGE_LOGLEVEL = "error"; }; labels.swag = "enable"; diff --git a/nixos-modules/docker-radarr.nix b/nixos-modules/docker-radarr.nix index edd76e8..ee9099c 100644 --- a/nixos-modules/docker-radarr.nix +++ b/nixos-modules/docker-radarr.nix @@ -9,7 +9,12 @@ "radarr-config:/config" "/video-data:/data" ]; - environment.TZ = "America/New_York"; + environment = { + TZ = "America/New_York"; + PUID = "912"; + PGID = "911"; + UMASK = "002"; + }; labels.swag = "enable"; extraOptions = [ "--pull=newer" diff --git a/nixos-modules/docker-sonarr.nix b/nixos-modules/docker-sonarr.nix index 1668324..bba5ec6 100644 --- a/nixos-modules/docker-sonarr.nix +++ b/nixos-modules/docker-sonarr.nix @@ -9,7 +9,12 @@ "sonarr-config:/config" "/video-data:/data" ]; - environment.TZ = "America/New_York"; + environment = { + TZ = "America/New_York"; + PUID = "911"; + PGID = "911"; + UMASK = "002"; + }; labels.swag = "enable"; extraOptions = [ "--pull=newer"