about summary refs log tree commit diff stats
path: root/home-manager/impermanence
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-07-29 21:58:49 +0200
committerSoispha <soispha@vhack.eu>2023-07-30 00:19:30 +0200
commit3f5e7b952916a9198afa6bcb85f9ad15187b0a80 (patch)
tree8029c515b900eb8453a629cc9424778f0cd03859 /home-manager/impermanence
parentStyle(treewide): Remove some unused imports (diff)
downloadnixos-config-3f5e7b952916a9198afa6bcb85f9ad15187b0a80.tar.gz
nixos-config-3f5e7b952916a9198afa6bcb85f9ad15187b0a80.zip
Feat(treewide): Add enable options for secrets and impermanence
Diffstat (limited to 'home-manager/impermanence')
-rw-r--r--home-manager/impermanence/default.nix42
1 files changed, 24 insertions, 18 deletions
diff --git a/home-manager/impermanence/default.nix b/home-manager/impermanence/default.nix
index 59cea605..90b2152b 100644
--- a/home-manager/impermanence/default.nix
+++ b/home-manager/impermanence/default.nix
@@ -1,24 +1,30 @@
-{...}: {
-  home.persistence."/srv/home/soispha" = {
-    allowOther = true;
-    directories = [
-      ".local/share"
+{
+  lib,
+  nixosConfig,
+  ...
+}: {
+  config = lib.mkIf nixosConfig.soispha.impermanence.enable {
+    home.persistence."/srv/home/soispha" = {
+      allowOther = true;
+      directories = [
+        ".local/share"
 
-      ".local/state/nvim"
-      ".local/state/wireplumber"
+        ".local/state/nvim"
+        ".local/state/wireplumber"
 
-      ".config/Signal"
-      ".config/Element"
+        ".config/Signal"
+        ".config/Element"
 
-      ".cache"
-      ".mozilla"
+        ".cache"
+        ".mozilla"
 
-      "media"
-      "repos"
-      "school"
-    ];
-    files = [
-      ".local/state/lesshst"
-    ];
+        "media"
+        "repos"
+        "school"
+      ];
+      files = [
+        ".local/state/lesshst"
+      ];
+    };
   };
 }