nix-darwin
nix-darwin copied to clipboard
Uninstaller needs work
Just off the top of my head:
- [ ] Needs to clean up
/run, esp. after https://github.com/LnL7/nix-darwin/pull/687 - [x] Didn't delete
/Applications/Nix Appswhen I tested in a VM, don't know why - [ ] Should restore pre-nix-darwin configuration like
nix.conf,bashrcandzshrc - [ ] Flake uninstall procedure needs documenting in README
- [ ] Update documentation to recommend running the uninstaller from
$PATH
I've fixed /Applications/Nix Apps not getting deleted in #687.
As opposed to the installer, I think uninstalling a flake-based system can be handled by the darwin-uninstaller, need to investigate further into any additional flake-specific logic that needs to be added.
I've fixed
/Applications/Nix Appsnot getting deleted in #687.
That's what confuses me: I was using that version (nix run github:Enzime/...).
I believe the uninstaller is not unloading launchd daemons before deleting the files, need to check this further.
I thought I'd call this out here too, there's a small bootstrapping issue with the uninstaller being a derivation that has to be built to be run. If someone has any issues actually running nix, and they want to uninstall nix-darwin to get back to a clean state, they can't easily do that right now, since the docs recommend running from the derivation
Some progress was made on this as of #806 as the uninstaller is now installed by default on all nix-darwin systems, accessible through darwin-uninstaller, so it no longer needs to be built, however I believe the uninstaller still depends on Nix.
The documentation should probably be updated to recommend running the uninstaller from $PATH