diff options
author | Joachim Breitner <mail@joachim-breitner.de> | 2023-03-28 09:35:49 +0200 |
---|---|---|
committer | Joachim Breitner <mail@joachim-breitner.de> | 2023-03-28 09:35:49 +0200 |
commit | 605c8f7789d9ef446c8f22d8c6a261b315be861d (patch) | |
tree | 3a24389df97b3ee07dfb54ab2d8e882d8e2570e4 /src/nix/flake.md | |
parent | 56dc6ed8410510033b835d48b3bd22766e8349a0 (diff) |
Docs: Explain why `import nixpkgs` works in flakes
Diffstat (limited to 'src/nix/flake.md')
-rw-r--r-- | src/nix/flake.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix/flake.md b/src/nix/flake.md index 8eaa41b96..cd9f656e3 100644 --- a/src/nix/flake.md +++ b/src/nix/flake.md @@ -317,6 +317,8 @@ The following attributes are supported in `flake.nix`: also contains some metadata about the inputs. These are: * `outPath`: The path in the Nix store of the flake's source tree. + This way, the attribute set can be passed to `import` as if it was a path, + as in the example above (`import nixpkgs`). * `rev`: The commit hash of the flake's repository, if applicable. |