]> Untitled Git - monorepo.git/commitdiff
fix impermanence main
authorPreston Pan <ret2pop@gmail.com>
Fri, 19 Sep 2025 06:57:01 +0000 (23:57 -0700)
committerPreston Pan <ret2pop@gmail.com>
Fri, 19 Sep 2025 06:57:01 +0000 (23:57 -0700)
config/nix.org
nix/modules/impermanence.nix

index a11f06443f5cec70bb68f947e3be23444a70eb35..fa4a659ed4567d0d337955d57cab4ff8e5b2f753 100644 (file)
@@ -1189,7 +1189,13 @@ This is my impermanence profile, which removes all files on reboot except for th
       btrfs subvolume create /btrfs_tmp/root
       umount /btrfs_tmp
     '' else "");
-    
+
+    filesystems = if (config.monorepo.profiles.impermanence.enable) then {
+      "/persistent" = {
+        neededForBoot = true;
+      };
+    } else {};
+
     environment.persistence."/persistent" = {
       enable = config.monorepo.profiles.impermanence.enable;
       hideMounts = true;
index e5308ac880858d9cb1cd51c47c3c0af104d509b5..32bcb2361bd66b09763a4bb66d7f5c00497cf3f0 100644 (file)
     btrfs subvolume create /btrfs_tmp/root
     umount /btrfs_tmp
   '' else "");
-  
+
+  filesystems = if (config.monorepo.profiles.impermanence.enable) then {
+    "/persistent" = {
+      neededForBoot = true;
+    };
+  } else {};
+
   environment.persistence."/persistent" = {
     enable = config.monorepo.profiles.impermanence.enable;
     hideMounts = true;