Hacker News new | past | comments | ask | show | jobs | submit login

It does slowly happen. There's a new `nix` command (a.k.a. Nix 2.0), which has a better CLI, though it's not yet 100% complete, I believe. But already useful (e.g. `nix search`).

https://nixos.org/nix/manual/#ssec-relnotes-2.0




Nice.

Does Guix have a better CLI?


Compared to Nix 1.x (not sure about 2.x), I think it's simpler to use (Guix co-maintainer here and before that a Nix contributor). This is the reference of 'guix package' (analogous to 'nix-env'):

https://gnu.org/s/guix/manual/en/html_node/Invoking-guix-pac...

Because it's all Scheme, Guix has well defined APIs for all sorts of things. For instance, there's an API for search paths (environment variables you need to define when you install packages), one to create application bundles, one to create VMs containing GuixSD, etc.

That, in turn, leads to clean CLIs in my opinion: 'guix package --search-paths', 'guix pack', 'guix system vm', etc.


Guix CLI is quite different and I've heard a few times people comparing it favorably to Nix. I haven't used Nix enough to compare myself though.




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

Search: