# Nix package manager

Nix package manager is useful even if you do not buy into the fully declarative NixOS ecosystem. I use nix package manager to install latest version of development tool packages even in Ubuntu installations.

A typical example would be.

## Useful aliases for fish shell

```
abbr -a -g n    nix-env
abbr -a -g ns   nix-search
abbr -a -g ni   nix-env -i
abbr -a -g nu   nix-updt
abbr -a -g ngc  nix-collect-garbage
```

## Resources

* [Nixology](https://www.youtube.com/watch?v=NYyImy-lqaA\&list=PLRGI9KQ3_HP_OFRG6R-p4iFgMSK1t5BHs)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.dewaka.com/linux/nix-env.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
