From 161c1f46b0ef1f48b9eac6fa191ff315a6298956 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sun, 21 Jan 2024 02:13:10 +0000 Subject: [PATCH] update paperless group permissions --- modules/nixos/services/paperless.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/nixos/services/paperless.nix b/modules/nixos/services/paperless.nix index 19691c5..6f22369 100644 --- a/modules/nixos/services/paperless.nix +++ b/modules/nixos/services/paperless.nix @@ -17,7 +17,9 @@ }; }; - users.users.paperless.extraGroups = [ "generic" ]; + # Allow Nextcloud and user to see files + users.users.nextcloud.extraGroups = [ "paperless" ]; + users.users.${config.user}.extraGroups = [ "paperless" ]; caddy.routes = [{ match = [{ @@ -45,6 +47,8 @@ before = [ "paperless.service" ]; }; + # TODO: Scheduled permissions fix with systemd timer + }; }