From f8fc9db0b2bdb45cc30d976cc40684719f59e178 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Wed, 1 May 2024 22:12:37 +0200 Subject: [PATCH] deluge directory permissions --- hosts/sigma/deluge.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/sigma/deluge.nix b/hosts/sigma/deluge.nix index aa65be1..c766f21 100644 --- a/hosts/sigma/deluge.nix +++ b/hosts/sigma/deluge.nix @@ -54,6 +54,10 @@ }; }; + # Add caspervk user to the 'torrent' group to allow viewing downloads + users.groups.torrent.members = ["caspervk"]; + + environment.persistence."/nix/persist" = { directories = [ # Deluge data directory. This is *NOT* where the downloads are saved @@ -70,7 +74,7 @@ # /srv/torrents/downloads/movies/ and /srv/torrents/tv/. { directory = "/srv/torrents"; - user = "caspervk"; + user = "deluge"; group = "torrent"; mode = "0770"; }