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: note against bidirectional

+19 -5
+19 -5
docs/src/content/docs/guides/bidirectional.mdx
··· 18 18 configuration to a Host, but **also** that a Host contributes 19 19 configurations to a User. 20 20 21 - This is useful when you wish for a Host to provide a common 22 - _home environment_ for all its users, or for a User to require 23 - common _os environment_ everywhere it is defined. 21 + <Aside title="When is bidirectionality needed?" icon="comment-alt"> 22 + Only when you wish for a Host-aspect to provide common _home settings_ 23 + (`homeManager`, etc) for **all** its users. 24 + 25 + And even then there are much simpler and better ways: 26 + 27 + ```nix 28 + # an aspect with all common stuff for everybody 29 + den.aspects.user-base = { nixos = ...; homeManager = ...; hjem = ...; }; 30 + 31 + # include it in all users 32 + den.ctx.user.includes = [ den.aspects.user-base ]; 33 + ``` 34 + 35 + > _Now you can skip the rest of this page_. 36 + </Aside> 37 + 24 38 25 39 There are at least two (built-in) ways to achieve this in Den. 26 - The `den._.bidirectional` and `den._.mutual-provider`, the 40 + The `den._.bidirectional` and `den._.mutual-provider` batteries. The 27 41 first one was extracted from den-core and the second started 28 42 life as an **aspect routing** example, but made it to become 29 - proper battery itself and even safer to use. 43 + proper battery itself and even safer than the first. 30 44 31 45 32 46 ## Default, *unidirectional* OS configuration