4 ms·
I 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 see
by senorsmile 4y ago
I 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....