Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not sure what the situation on MacOs is, but you don't need to use home-manager, do you?

You should be able to simple use:

nix-env -I <package_name>

Or (new flake enabled CLI tools):

nix profile nixpkgs#<package_name>

That's quite close to other package managers. You still have the massive nixpkgs repository and tools like nix-shell as an advantage.



Or frequently just `nix shell nixpkgs#foo` or even `nix run nixpkgs#bar -- --baz` (as opposed to `brew install foo; foo; brew uninstall (or it is it remove?) foo`

I still have both installed as the union of their packages is better than either in isolation, but I really like having a good idea of what I have permanently installed (and why) in my nix config files, as opposed to re-spending 5 minutes in the brew docs to remember the brew incantation that will give me a reverse dependency tree and try to sort out whether I can uninstall something without breaking something else.


Why would you need to remember dep tree if brew will simply fail to uninstall an app if something else depends on it?

The other solution to this and the other is shell aliasing, make "package manager rm" uninstall regardless of the package manager, and you don't need to remember


I often end up scripting something with the dependency tree as opposed to recursively trying to uninstall dependencies that I don't recognize until I get to something top-level that I recognize.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: