summaryrefslogtreecommitdiff
path: root/nix/modules/impermanence.nix
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2026-02-06 15:52:14 -0800
committerPreston Pan <ret2pop@gmail.com>2026-02-06 15:52:14 -0800
commit51116ed17e2febc06dc795e5893d3a31e97962e9 (patch)
tree17ec9ca6f8475931e1f26f94928b753c042e06d1 /nix/modules/impermanence.nix
parent9e826d9c2bad4a7ccf183257118be37083f26782 (diff)
server and desktop configurations are working fully and booting
Diffstat (limited to 'nix/modules/impermanence.nix')
-rw-r--r--nix/modules/impermanence.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nix/modules/impermanence.nix b/nix/modules/impermanence.nix
index 36b2f7e..ad942ff 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/mapper/crypted /btrfs_tmp
+ mount -t btrfs -n -o subvol=/ /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")
@@ -29,7 +29,7 @@
done
btrfs subvolume create /btrfs_tmp/root
- umount /btrfs_tmp
+ umount -n /btrfs_tmp
'' else "");
boot.initrd.luks.devices = (if (config.monorepo.vars.fileSystem == "btrfs") then {