From: Preston Pan Date: Sat, 20 Sep 2025 12:28:30 +0000 (-0700) Subject: fix nix-impermanence X-Git-Url: https://ret2pop.net/gitweb/%22../%22/index.html/style.css?a=commitdiff_plain;h=refs%2Fheads%2Fmain;p=monorepo.git fix nix-impermanence --- 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")