From: Preston Pan Date: Fri, 19 Sep 2025 06:57:01 +0000 (-0700) Subject: fix impermanence X-Git-Url: https://ret2pop.net/gitweb/%22/index.html/%22https:/polyfill.io/static/git-favicon.png?a=commitdiff_plain;h=c2720248c8cef1df804d8f5def306d6973eabdcb;p=monorepo.git fix impermanence --- diff --git a/config/nix.org b/config/nix.org index a11f064..fa4a659 100644 --- a/config/nix.org +++ b/config/nix.org @@ -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; diff --git a/nix/modules/impermanence.nix b/nix/modules/impermanence.nix index e5308ac..32bcb23 100644 --- a/nix/modules/impermanence.nix +++ b/nix/modules/impermanence.nix @@ -31,7 +31,13 @@ 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;