nix
nix copied to clipboard
`nix profile` has bad UX
There are quite a few UX problems with nix profile. I'd like to document them to give some context:
- [ ] https://github.com/NixOS/nix/issues/7964
- [ ] https://github.com/NixOS/nix/issues/7965
- [ ] https://github.com/NixOS/nix/issues/10064
- [ ] https://github.com/NixOS/nix/issues/10077
- [ ] https://github.com/NixOS/nix/issues/9801
- [ ] https://github.com/NixOS/nix/issues/10098
- [ ] https://github.com/NixOS/nix/issues/9802
- [ ] https://github.com/NixOS/nix/issues/8704
- [x] https://github.com/NixOS/nix/issues/7487
- [x] https://github.com/NixOS/nix/issues/10162
- [x] https://github.com/NixOS/nix/issues/7962
- [x] https://github.com/NixOS/nix/issues/5587
- [x] https://github.com/NixOS/nix/issues/7530
- [x] https://github.com/NixOS/nix/issues/7960
- [x] https://github.com/NixOS/nix/issues/7961
- [x] https://github.com/NixOS/nix/pull/8678
I thought I'd gather them here in a single overarching issue, instead of listing the problems all here.
3 of these issues can be resolved if we could refer to installed packages by name instead of by index:
- [x] https://github.com/NixOS/nix/issues/7967
Thanks a lot for listing all these. I think that will be incredibly useful for #7701
I just got here and with all the documentation around it I still haven't been able to figure out what nix profile does and why I need it or how to use it.
Given how confusing a lot of the documentation is… maybe a full revamp is in order.
Update: I got it. nix profile is great, the documentation in CLI and on web are good and it's the simplest way really to install global packages.
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/flakes-as-a-unified-format-for-profiles/29476/1
#6481 was abandoned in favor of #8631; you may want to update the todo list :)
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/nix-flakes-is-an-experiment-that-did-too-much-at-once/32707/12
Thanks for compiling the issues. I wanted to write a home-manager alternative ( https://github.com/viperML/activation-manager ), that relies on being installed as part of a buildEnv + nix profile install /flake#package-output. But I just faced all the bad UX of nix profile.
@bobvanderlinden now that #8678 has been merged, could you re-evaluate whether which of these issues are resolved?
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/2023-12-15-nix-team-meeting-minutes-112/38155/1
Two more issues that might be worth adding here: https://github.com/NixOS/nix/issues/10463, https://github.com/NixOS/nix/issues/10419
@iFreilicht I think they can both be considered duplicates. I've commented in the issues.