mirror of
https://github.com/nix-dot-dev/nix.dev.git
synced 2024-10-06 18:18:36 +03:00
Clarify explanation under the NixOS config example
Split one long point into two to make things clearer. Also explain what happens to the `./hardware-configuration.nix` when evaluated.
This commit is contained in:
parent
07098339b2
commit
eb0615c397
@ -1650,7 +1650,8 @@ Explanation:
|
||||
It returns an attribute set.
|
||||
- The argument must at least have the attributes `config` and `pkgs`, and may have more attributes.
|
||||
- The returned attribute set contains the attributes `imports` and `environment`.
|
||||
`imports` is a list with one element: a path to a file next to this Nix file, called `hardware-configuration.nix`.
|
||||
- `imports` is a list with one element: a path to a file next to this Nix file, called `hardware-configuration.nix`.
|
||||
When evaluated, the `./hardware-configuration.nix` will be copied into the Nix store, converting it into a Nix store path.
|
||||
|
||||
:::{note}
|
||||
`imports` is not the impure built-in `import`, but a regular attribute name!
|
||||
|
Loading…
Reference in New Issue
Block a user