Closed victorhooi closed 5 months ago
It's a good idea to mention this and have it available to the user, but setting it as default could possibly be intrusive if the user doesn't realize it and accidentally removes an app they really need. Although the config is declarative, under the hood it will be imperative mac terminal commands that do the installing/uninstalling, sometimes undocumented things happen, break, etc.
My preference is reformat my Mac from time to time if I feel like I need to.
Anyway, I think we add this commented line to the config
# onActivation.cleanup = "uninstall";
in the areas that need it under templates/starter
and templates/starter-with-secrets
.
Feel free to add this there and open a PR, or I can get to it eventually.
Merged this as part of your PR. Thanks!
I just edited some packages in ~/nixos-config/modules/darwin/casks.nix, and realised that if I commented out a package, it didn't get uninstalled.
Anyway, I did some naive Googling (e.g. this article), and it seems the option I want is homebrew.onActivation.cleanup.
Does it make sense to make
homebrew.onActivation.cleanup = "uninstall"
, (or= "zap"
) the default?Or at least call it out in the README as a suggestion?
Also - it might be helpful to briefly mention in the README about enabling Full Disk Access around that point. WDYT?