nixos-and-flakes-book/docs/the-nix-language/index.md

17 lines
1.4 KiB
Markdown
Raw Normal View History

2023-07-04 04:18:46 +00:00
# Basics of the Nix Language
2023-07-04 04:18:46 +00:00
The Nix language is essential for declaring configurations to be built by Nix. To fully enjoy the benefits of NixOS and Flakes, it is necessary to grasp the fundamentals of this language.
2023-07-04 04:18:46 +00:00
The Nix language is a straightforward functional language. If you have some programming experience, it should take you less than 2 hours to grasp its basics.
2023-07-04 04:18:46 +00:00
To get started, I recommend reading the following resources for a solid introduction to the Nix language:
1. [**Nix Language Basics - nix.dev**](https://nix.dev/tutorials/first-steps/nix-language): This tutorial provides a comprehensive overview of the basics of the Nix language.
2023-08-27 06:20:34 +00:00
2. [Nix - A One Pager](https://github.com/tazjin/nix-1p): A one page introduction to the Nix language.
2023-07-06 03:37:53 +00:00
1. You can safely skip the section on `callPackage`/`Overriding`/`Overlays` for now. We will cover it in the next chapter.
2023-08-27 06:20:34 +00:00
3. [Nix Language](https://nixos.org/manual/nix/stable/language/): The official documentation of the Nix language.
2023-08-27 06:27:28 +00:00
1. nix.dev & nix-1p are suitable for starter reading only, and **neither of them fully introduces the full syntax of Nix**. If you encounter a new syntax that you have not come across before, please refer to this official document.
2023-08-27 06:20:34 +00:00
By going through these materials, you will develop a solid foundation in the Nix language, allowing you to effectively utilize NixOS and Flakes.
2023-07-04 04:18:46 +00:00