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
1# Examples
2
3This template provides some basic examples of how to use Den features.
4However, you will learn more by reading templates/ci which tests all of Den.
5
6Steps you can follow after cloning this template:
7
8- Be sure to read the [den documentation](https://vic.github.io/den)
9
10- Update den input.
11
12```console
13nix flake update den
14```
15
16- Run checks to test everything works.
17
18```console
19nix flake check
20```
21
22- Read [modules/den.nix](modules/den.nix) where hosts and homes definitions are for this example.
23
24- Read [modules/namespace.nix](modules/namespace.nix) where a new `eg` (an example) aspects namespace is created.
25
26- Read [modules/aspects/igloo.nix](modules/aspects/igloo.nix) where the `igloo` host is configured.
27
28- Read [modules/aspects/alice.nix](modules/aspects/alice.nix) where the `alice` user is configured.
29
30- Build
31
32```console
33# default action is build
34nix run .#igloo
35
36# pass any other nh action
37nix run .#igloo -- switch
38```
39
40- Run the VM.
41
42```console
43nix run .#vm
44```
45
46- Edit and run VM loop.
47
48Feel free to add more aspects, organize things to your liking.