diff options
| author | Preston Pan <ret2pop@gmail.com> | 2025-09-18 23:57:01 -0700 |
|---|---|---|
| committer | Preston Pan <ret2pop@gmail.com> | 2025-09-18 23:57:01 -0700 |
| commit | c2720248c8cef1df804d8f5def306d6973eabdcb (patch) | |
| tree | 0de7b6925485969f14c961b103a657d8a89169d5 | |
| parent | e4b2dd39be50f7bf064a2a57076f75317b5ebad0 (diff) | |
fix impermanence
| -rw-r--r-- | config/nix.org | 8 | ||||
| -rw-r--r-- | nix/modules/impermanence.nix | 8 |
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; |
