about summary refs log tree commit diff stats
path: root/home-manager
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-02-20 10:12:35 +0100
committerene <ene@sils.li>2023-02-20 11:42:45 +0100
commit2e1fab3e13c557928313f022a7f48ff0ce55e251 (patch)
treea2a32757009a0a77c39b47098af1886bb3b7d38f /home-manager
parentFix(system): Remove unnecessary persistent file (diff)
downloadnixos-config-2e1fab3e13c557928313f022a7f48ff0ce55e251.tar.gz
nixos-config-2e1fab3e13c557928313f022a7f48ff0ce55e251.zip
Fix(system): Refactor impermanence
Diffstat (limited to 'home-manager')
-rw-r--r--home-manager/default.nix1
-rw-r--r--home-manager/impermanence/default.nix32
2 files changed, 15 insertions, 18 deletions
diff --git a/home-manager/default.nix b/home-manager/default.nix
index 4f10b40f..bdbf50a6 100644
--- a/home-manager/default.nix
+++ b/home-manager/default.nix
@@ -16,6 +16,7 @@
   dataHome = "${homeDirectory}/.local/share";
 in {
   imports = [
+    inputs.impermanence.nixosModules.home-manager.impermanence
     ./impermanence
     ./packages
     ./config
diff --git a/home-manager/impermanence/default.nix b/home-manager/impermanence/default.nix
index d4654c37..7a542ffa 100644
--- a/home-manager/impermanence/default.nix
+++ b/home-manager/impermanence/default.nix
@@ -5,22 +5,18 @@
   ...
 }: {
   # TODO use this instead of the root config
-  #  import = [
-  #    impermanence.nixosModules.home-manager.impermanence
-  #  ];
-  #
-  #  home.persistence."/srv${config.home.homeDirectory}" = {
-  #    directories = [
-  #      ".local/share"
-  #      ".cache"
-  #
-  #      "media"
-  #      "repos"
-  #      "school"
-  #    ];
-  #    files = [
-  #      ".screenrc"
-  #    ];
-  #    allowOther = true;
-  #  };
+
+  nixosConfig.home.persistence."/srv/home/soispha" = {
+    allowOther = true;
+    directories = [
+      ".local/share"
+      ".cache"
+
+      "media"
+      "repos"
+      "school"
+    ];
+    files = [
+    ];
+  };
 }