]> Untitled Git - monorepo.git/commitdiff
fix nix-impermanence main
authorPreston Pan <ret2pop@gmail.com>
Sat, 20 Sep 2025 12:28:30 +0000 (05:28 -0700)
committerPreston Pan <ret2pop@gmail.com>
Sat, 20 Sep 2025 12:28:30 +0000 (05:28 -0700)
config/nix.org
nix/modules/impermanence.nix

index 969634fcf0b121374b028270a65d8af2d9b262f0..da30b916652c11ad0d63db99aff7f1a7b3010a31 100644 (file)
@@ -1172,7 +1172,7 @@ This is my impermanence profile, which removes all files on reboot except for th
 
     boot.initrd.postResumeCommands = (if config.monorepo.profiles.impermanence.enable then lib.mkAfter ''
       mkdir /btrfs_tmp
-      mount /dev/root_vg/root /btrfs_tmp
+      mount /dev/mapper/crypted /btrfs_tmp
       if [[ -e /btrfs_tmp/root ]]; then
           mkdir -p /btrfs_tmp/old_roots
           timestamp=$(date --date="@$(stat -c %Y /btrfs_tmp/root)" "+%Y-%m-%-d_%H:%M:%S")
index e2abf3d37dc13c07b55dd0bc5e30a773a088f5cd..6305bc538cc7cdacc62eea7c324fb17856235f8a 100644 (file)
@@ -9,7 +9,7 @@
 
   boot.initrd.postResumeCommands = (if config.monorepo.profiles.impermanence.enable then lib.mkAfter ''
     mkdir /btrfs_tmp
-    mount /dev/root_vg/root /btrfs_tmp
+    mount /dev/mapper/crypted /btrfs_tmp
     if [[ -e /btrfs_tmp/root ]]; then
         mkdir -p /btrfs_tmp/old_roots
         timestamp=$(date --date="@$(stat -c %Y /btrfs_tmp/root)" "+%Y-%m-%-d_%H:%M:%S")