nix.dev
nix.dev copied to clipboard
Official documentation for getting things done with Nix.
Hi I just want to point out that this part of the tutorial ([link](https://nix.dev/tutorials/nixos/building-and-running-docker-images)) doesn't work > Cross compile to Linux by replacing pkgsLinux.hello with pkgs.pkgsCross.musl64.hello I was trying to...
The Learning Journey WG identified that the second tutorial in the learning journey should be a tutorial walking the user through creating a `shell.nix`. This is the tracking issue for...
## Project description A Nix build goes through several phases, many of which are handled for you automatically if you're using nixpkgs-provided builders. However, it's common to want to customize...
As part of the tutorial series being worked on by the Learning Journey WG we need a tutorial going over the Nix language. We recognize that there's an existing tutorial...
## Project description It's very common to want to tweak a particular feature of an existing package. For example, you may want a package compiled with different options. You may...
As a new user it's often difficult to get NixOS installed because you may need a wired connection, which can be impractical. One solution is to create your own NixOS...
**Proposal** `callPackage` is used everywhere in Nixpkgs, but it's quite magical. It's very easy to use, so there are few instructions needed (rather a few good examples highlighting patterns *where*...
**Observations** There are > 5 ways to handle dependencies in Nix expressions: - Lookup paths and their various syntaxes (``, `-I`, `NIX_PATH`) - Channels - Paths to Git submodules -...
**Problem** There are currently two pages that should be one. Since they are reference documentation specific to Nix, they should be in the Nix manual. Related but different: https://github.com/NixOS/nix.dev/issues/907 **Approaches**...
## Observations [diataxis.fr](https://diataxis.fr/) describes how-to guides as: - Practical steps - That serve our work in Nix (rather than our study of Nix) - That are task-oriented The "Best practices"...