summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2025-09-20 05:28:30 -0700
committerPreston Pan <ret2pop@gmail.com>2025-09-20 05:28:30 -0700
commit2f6ede5394f46892957369708c14fe6b1c7d6f81 (patch)
tree83b9948cbedf19220d479d6d04fc3a7bd8a09aaf
parent34f318ee2701ac6c0741abba6e8ecc0bba30c5ec (diff)
fix nix-impermanence
-rw-r--r--config/nix.org2
-rw-r--r--nix/modules/impermanence.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/config/nix.org b/config/nix.org
index 969634f..da30b91 100644
--- a/config/nix.org
+++ b/config/nix.org
@@ -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")
diff --git a/nix/modules/impermanence.nix b/nix/modules/impermanence.nix
index e2abf3d..6305bc5 100644
--- a/nix/modules/impermanence.nix
+++ b/nix/modules/impermanence.nix
@@ -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")