Jump to content

Nix (language): Difference between revisions

From NixOS Wiki
imported>Ixxie
No edit summary
DoggoBit (talk | contribs)
No edit summary
 
(100 intermediate revisions by 45 users not shown)
Line 1: Line 1:
{{notice|text=this article is incomplete; please consult the [[:Category:Discussion|discussion article metapage]] for guidelines on contributing.}}
<languages/>
<translate>
{{Navbox Nix}}
{{Disambiguation|message=This article is about the Nix language itself. Not to be confused with the [[Nix ecosystem]], the [[Nix package manager]] or the [[Nix (command)|Nix command]].}}{{Expand|scope=article}}


This [[:Category:Discussion|discussion]] article covers the syntax, semantics, typing, compilation, tooling and libraries of the Nix Expression Language.
The Nix language is designed for conveniently creating and composing <i>derivations</i> – precise descriptions of how contents of existing files are used to derive new files.  


== Learning the Nix language ==
<!--T:2-->
{{Note|Check the [https://nixos.org/manual/nix/stable/language/ Nix Reference Manual on the Nix Language] for up-to-date documentation and [https://nix.dev/tutorials/nix-language Nix language basics] for a gentle introduction.}}
The .nix files are written in the Nix language. While being a NixOS user doesn't demand complete mastery of Nix, customizing code snippets is necessary.


The [https://nixos.org/nix/manual/#ch-expression-language manual] provides a reference of the Nix language.
<!--T:3-->
== See also ==
* [[Nix Expression Language: Learning resources|Learning resources]]
* [[Editor Modes for Nix Files]]
* [[Nix Language: Tips & Tricks]]
* [[Nix Language Quirks]]


[https://medium.com/@MrJamesFisher/nix-by-example-a0063a1a4c55 Nix By Example] is a step-by-step tutorial.
<!--T:4-->
 
[[Category:Pedias]]
[[Category:Discussion]]
[[Category:Nix Language]]
[[Category:Nix Language]]
[[Category:Incomplete]]
</translate>

Latest revision as of 13:27, 19 June 2025

Introduction to Nix

Tools and applications

⤧︎
Disambiguation: This article is about the Nix language itself. Not to be confused with the Nix ecosystem, the Nix package manager or the Nix command.
☶︎
This article needs to be expanded. Further information may be found in the related discussion page. Please consult the pedia article metapage for guidelines on contributing.

The Nix language is designed for conveniently creating and composing derivations – precise descriptions of how contents of existing files are used to derive new files.

Note: Check the Nix Reference Manual on the Nix Language for up-to-date documentation and Nix language basics for a gentle introduction.

The .nix files are written in the Nix language. While being a NixOS user doesn't demand complete mastery of Nix, customizing code snippets is necessary.

See also