services.home-manager.autoExpire.store.cleanup

Whether to enable to cleanup Nix store when the Home Manager expire service runs.

It will use nix-collect-garbage to cleanup the store, removing all unreachable store objects from the current user (i.e.: not only the expired Home Manager generations).

This may not be what you want, this is why this option is disabled by default.

Type
boolean
Default
false
Example
true
Declared
<home-manager/modules/services/home-manager-auto-expire.nix>