summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2025-09-18 23:57:01 -0700
committerPreston Pan <ret2pop@gmail.com>2025-09-18 23:57:01 -0700
commitc2720248c8cef1df804d8f5def306d6973eabdcb (patch)
tree0de7b6925485969f14c961b103a657d8a89169d5
parente4b2dd39be50f7bf064a2a57076f75317b5ebad0 (diff)
fix impermanence
-rw-r--r--config/nix.org8
-rw-r--r--nix/modules/impermanence.nix8
2 files changed, 14 insertions, 2 deletions
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;