about summary refs log tree commit diff
path: root/modules/workstation/mail
diff options
context:
space:
mode:
Diffstat (limited to 'modules/workstation/mail')
-rw-r--r--modules/workstation/mail/isync/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/workstation/mail/isync/default.nix b/modules/workstation/mail/isync/default.nix
index 3fcd2c6f8b35..cf05d9d8c32d 100644
--- a/modules/workstation/mail/isync/default.nix
+++ b/modules/workstation/mail/isync/default.nix
@@ -18,10 +18,15 @@
       postStart = ''
         ${findutils}/bin/find \
             "${maildir}" \
-            -type f \
             -not -name .mbsyncstate* \
             -exec ${coreutils}/bin/chown qyliss:qyliss '{}' \; \
-            -exec ${coreutils}/bin/chmod 0660 '{}' \;
+            \( \
+              -type f \
+              -exec ${coreutils}/bin/chmod 0660 '{}' \; \
+            -or \
+              -type d \
+              -exec ${coreutils}/bin/chmod 0770 '{}' \; \
+            \)
       '';
     };