nix-community / impermanence

Modules to help you handle persistent state on systems with ephemeral root storage [maintainer=@talyz]
MIT License
1.01k stars 76 forks source link

nixos: Disable module if no persistent storage paths are defined or all are disabled #189

Closed talyz closed 2 weeks ago

talyz commented 1 month ago

Previously, we would always make some meaningless additions to activationScripts and such.

Also, remove some unused lib function imports from the module.

cc @0xf09f95b4

jian-lin commented 3 weeks ago

Related: https://github.com/nix-community/impermanence/pull/190 tries to avoid making side-effects to fileSystems when directories == [] (and files != [])