Overview of the Nix Language: Difference between revisions

From NixOS Wiki
imported>Mic92
No edit summary
m Fix grammatical error
 
(97 intermediate revisions by 42 users not shown)
Line 1: Line 1:
{{warning|text="This discussion article is incomplete, so contributions are welcome. Please consult the [[:Category:Discussion|discussion article metapage]] for guidelines on contributing to discussion articles."}}
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.  


This [[:Category:Discussion|discussion]] article covers the syntax, semantics, typing, compilation, tooling and libraries of the Nix Expression Language.
{{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.


== Learning the Nix language ==
== See also ==
* [[Nix Expression Language: Learning resources|Learning resources]]
* [[Editor Modes for Nix Files]]
* [[Nix Language: Tips & Tricks]]
* [[Nix Language Quirks]]


The [manual https://nixos.org/nix/manual/#ch-expression-language] provides a reference of the Nix language.
[[Category:Pedias]]
 
[Nix By Example https://medium.com/@MrJamesFisher/nix-by-example-a0063a1a4c55] is a step-by-step tutorial.
 
[[Category:Discussion]]
[[Category:Nix Language]]
[[Category:Nix Language]]
[[Category:Incomplete]]

Latest revision as of 01:10, 7 October 2024

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