summary refs log tree commit diff
path: root/mixins
diff options
context:
space:
mode:
Diffstat (limited to 'mixins')
-rw-r--r--mixins/syncthing.nix14
1 files changed, 3 insertions, 11 deletions
diff --git a/mixins/syncthing.nix b/mixins/syncthing.nix
index 8928969..ac9944b 100644
--- a/mixins/syncthing.nix
+++ b/mixins/syncthing.nix
@@ -24,17 +24,9 @@
       };
     };
 
-    environment.persistence."/nix/persist".directories = [
-      {
-        directory = "/home/tzlil/sync";
-        user = "tzlil";
-        group = "users";
-      }
-      {
-        directory = "/home/tzlil/.config/syncthing";
-        user = "tzlil";
-        group = "users";
-      }
+    environment.persistence."/nix/persist".users.tzlil.directories = [
+      "sync"
+      ".config/syncthing"
     ];
   };
 }