impermanence icon indicating copy to clipboard operation
impermanence copied to clipboard

Easy way to disable

Open dwarfmaster opened this issue 1 year ago • 1 comments

When sharing nix modules between different systems, some that have an impermanence setup and others that don't, it would be useful to be able to easily enable/disable persistence without having to conditionally set it up. It would also be more consistent with other NixOS module.

Right now I am doing the following to disable:

{
  environment.persistence = lib.mkForce {};
}

But this feels more like a hack.

dwarfmaster avatar Aug 22 '23 08:08 dwarfmaster

Hi! You should be able to use the enable option for this. It was undocumented, but I just added a bit about it in the README.

talyz avatar Jun 09 '24 11:06 talyz