summaryrefslogtreecommitdiff
path: root/nix/modules
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 /nix/modules
parente4b2dd39be50f7bf064a2a57076f75317b5ebad0 (diff)
fix impermanence
Diffstat (limited to 'nix/modules')
-rw-r--r--nix/modules/impermanence.nix8
1 files changed, 7 insertions, 1 deletions
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;