diff options
Diffstat (limited to '3 resources/nix/language')
-rw-r--r-- | 3 resources/nix/language/Import.md (renamed from 3 resources/nix/language/keyword-import.md) | 3 | ||||
-rw-r--r-- | 3 resources/nix/language/Let.md (renamed from 3 resources/nix/language/keyword-let.md) | 3 | ||||
-rw-r--r-- | 3 resources/nix/language/Rec.md (renamed from 3 resources/nix/language/keyword-rec.md) | 3 | ||||
-rw-r--r-- | 3 resources/nix/language/With.md (renamed from 3 resources/nix/language/keyword-with.md) | 3 |
4 files changed, 12 insertions, 0 deletions
diff --git a/3 resources/nix/language/keyword-import.md b/3 resources/nix/language/Import.md index 616c155..d201c74 100644 --- a/3 resources/nix/language/keyword-import.md +++ b/3 resources/nix/language/Import.md @@ -1,2 +1,5 @@ +#nix #keyword + +--- The import keyword brings a Nix expression from another source into scope such that we can reference it. For example, we can `import <nixpkgs>` and it would bring the entire attribute set that is Nixpkgs into scope and allows us to reference any of its attributes. diff --git a/3 resources/nix/language/keyword-let.md b/3 resources/nix/language/Let.md index 3b2f401..bfb4b31 100644 --- a/3 resources/nix/language/keyword-let.md +++ b/3 resources/nix/language/Let.md @@ -1,3 +1,6 @@ +#nix #keyword + +--- Keyword: `let` Used to assign variables that can be used in an expression immediately following the let-binding. ```nix diff --git a/3 resources/nix/language/keyword-rec.md b/3 resources/nix/language/Rec.md index 456f877..b7050d3 100644 --- a/3 resources/nix/language/keyword-rec.md +++ b/3 resources/nix/language/Rec.md @@ -1,3 +1,6 @@ +#nix #keyword + +--- Recursive attribute sets can reference values declared earlier in the same set. keyword: `rec` ```nix diff --git a/3 resources/nix/language/keyword-with.md b/3 resources/nix/language/With.md index 10763ff..b291907 100644 --- a/3 resources/nix/language/keyword-with.md +++ b/3 resources/nix/language/With.md @@ -1,3 +1,6 @@ +#nix #keyword + +--- The `with` keyword brings all attributes from a given set, e.g nixpkgs, into the local scope. Making them accessible as if they were declared in the same file. An example, bringing everything from nixpkgs into scope: |