3 ms·
Yup. I started with Nix a little over a year ago on Nix 2.3, and have only ever used flakes and the new CLI. It's complete from my point of view— the main issue
by mikepurvis 4y ago
Yup. I started with Nix a little over a year ago on Nix 2.3, and have only ever used flakes and the new CLI. It's complete from my point of view— the main issue is just that the pills and all the official documentation still refer to the old commands.
I wish they'd flip it over to being the default and update the docs. I know that's not trivial, and it's hard when all the long-time community members have the legacy commands in their muscle memory, but IMO the current state of affairs is actively hurting the onboard experience.
- senorsmile 4y agoI started with a single system on NixOS around February of this year. I just recently saw an example of `nix search` instead of `nix-env -qaP`. I haven't seen any documentation for all of this new stuff. Any place to go, or do we just have to go read the source code?
- grumbel 4y ago`nix --help`, `nix search --help`, ... will show a man page, but a look at source can't hurt, as there are a couple of rough corners with the `nix` command that can be rather confusing. For example `nix profile remove REGEX` will only match against the attribute part of the URL, which for Flakes is often just "defaultPackage.x86_64-linux", completely missing the name of the actual package, thus making it impossible to remove packages by name (using the index number will work). The source is pretty readable: https://github.com/NixOS/nix/tree/master/src/nix https://github.com/NixOS/nix/tree/master/src/nix
- mikepurvis 4y agoI think it's basically just the man pages online, but I've found this resource to be pretty helpful: https://nixos.org/manual/nix/stable/command-ref/new-cli/nix.html https://nixos.org/manual/nix/stable/command-ref/new-cli/nix....