summary refs log tree commit diff
path: root/mixins
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2023-08-03 20:36:11 +0300
committertzlil <tzlils@protonmail.com>2023-08-03 20:36:11 +0300
commit77da12bae6fb23133758cd92ebd0d814a96ff46f (patch)
tree78cbe2ed93dae97f02fe919a650357a5014443aa /mixins
parent211d085dfae21f7df847d57377dfb8e54c1ba9e9 (diff)
use impermanence user crap
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"
     ];
   };
 }