summary refs log tree commit diff
path: root/hosts/navi
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 /hosts/navi
parent211d085dfae21f7df847d57377dfb8e54c1ba9e9 (diff)
use impermanence user crap
Diffstat (limited to 'hosts/navi')
-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];