Modular, context-aware and aspect-oriented dendritic Nix configurations. Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/ den.oeiuwq.com
configurations den dendritic nix aspect oriented
8
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: clarify how to enable angle-brackets in a file (#291)

authored by

crasm and committed by
GitHub
e867b825 0def158d

+11 -5
+11 -5
docs/src/content/docs/guides/angle-brackets.mdx
··· 25 25 } 26 26 ``` 27 27 28 + In any file where you want to use the angle-brackets syntax, add 29 + `__findFile` to the arguments attrset to bring it into that module's 30 + lexical scope. 31 + 32 + ```nix 33 + { den, __findFile, ... }: { 34 + ... 35 + } 36 + 37 + ``` 38 + 28 39 ## Resolution Rules 29 40 30 41 The `<name>` expression resolves through these paths in order: ··· 63 74 They are functionally identical to direct attribute access. The choice 64 75 is a matter of style. 65 76 66 - <Aside type="caution"> 67 - Angle brackets use Nix's `__findFile` mechanism, which is positional 68 - (depends on being in scope). They only work in modules where 69 - `__findFile` has been set as a module argument. 70 - </Aside>