summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/navi/default.nix29
1 files changed, 9 insertions, 20 deletions
diff --git a/hosts/navi/default.nix b/hosts/navi/default.nix
index 0620512..3424a87 100644
--- a/hosts/navi/default.nix
+++ b/hosts/navi/default.nix
@@ -68,26 +68,15 @@
     #   client.enable = true;
     #   torsocks.enable = true;
     # };
-    environment.persistence."/nix/persist".directories = [
-      "/etc/NetworkManager/system-connections"
-      {
-        directory = "/home/tzlil/.config/SchildiChat";
-        user = "tzlil";
-        group = "users";
-      }
-      {
-        directory = "/home/tzlil/.local/share/Terraria";
-        user = "tzlil";
-        group = "users";
-      }
-
-      {
-        directory = "/home/tzlil/.local/share/Steam";
-        user = "tzlil";
-        group = "users";
-      }
-      "/var/lib/docker"
-    ];
+    environment.persistence."/nix/persist" = {
+      directories = [
+        "/etc/NetworkManager/system-connections"
+        "/var/lib/docker"
+      ];
+      users.tzlil = {
+        directories = [".config/SchildiChat" ".local/share/Terraria" ".local/share/Steam"];
+      };
+    };
 
     home-manager.users.tzlil = {
       home.packages = [pkgs.schildichat-desktop-wayland pkgs.keepassxc pkgs.gtkcord4];