diff options
Diffstat (limited to 'nix/modules')
| -rw-r--r-- | nix/modules/impermanence.nix | 8 |
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; |
