tangled
alpha
login
or
join now
oeiuwq.com
/
den
8
fork
atom
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
atom
overview
issues
4
pulls
2
pipelines
example test
oeiuwq.com
2 days ago
869f4262
70350896
+27
1 changed file
expand all
collapse all
unified
split
templates
ci
modules
new-test.nix
+27
templates/ci/modules/new-test.nix
···
1
1
+
# copy this file and rename `new` and `something`
2
2
+
# adapt the code to assert something via `expr` and `expected`.
3
3
+
# denTest is defined at test-support/eval-den.nix and provides args:
4
4
+
# - igloo = nixosConfigurations.igloo.config
5
5
+
# - tuxHm = igloo.home-manager.users.tux
6
6
+
{ denTest, ... }:
7
7
+
{
8
8
+
flake.tests.new = {
9
9
+
test-something = denTest (
10
10
+
{ den, igloo, ... }:
11
11
+
{
12
12
+
den.hosts.x86_64-linux.igloo.users.tux = { };
13
13
+
14
14
+
den.aspects.base =
15
15
+
{ host, ... }:
16
16
+
{
17
17
+
nixos.networking.hostName = host.hostName;
18
18
+
};
19
19
+
20
20
+
den.aspects.igloo.includes = [ den.aspects.base ];
21
21
+
22
22
+
expr = igloo.networking.hostName;
23
23
+
expected = "igloo";
24
24
+
}
25
25
+
);
26
26
+
};
27
27
+
}