Follow

Why would one ever want to use `nix-env` on NixOS? It causes a lot of confusion for new people when they realize that what needs updating is not only channels of their user, and channels of root, but also nix-env-installed packages. Even once you resolve that confusion, you are still stuck with one more independently updated thing that you need to update in sync (due to graphics drivers), so the promise of easy rollbacks is a bit further away (because one needs to roll back one more thing and remember to do that).

@robryk
True, but sometimes it's a really convenient workaround when you aren't ready to rebuild your whole system to test out an application, or haven't setup home-manager yet.

@twoolie

Re testing: why isn't nix-shell strictly better?

Re lack of home-manager: well, you can always add your stuff to `environment.systemPackages`~~~

@robryk

nix-shell doesn't link .desktop files and icons into your desktop environment for one. It's convenient for in-shell environments, but not for gui work.

environment.systemPackages requires a system rebuild, and also forces one application version onto every user.

If you're running a shared machine where multiple users login and want to use different versions of software, nix-env fits that use-case pretty well.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.