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 git class -> homeManager -> nixos
oeiuwq.com
3 weeks ago
1ce2f85a
766f1663
1/1
mirror.yml
success
5s
+41
1 changed file
expand all
collapse all
unified
split
templates
ci
modules
features
forward-from-custom-class.nix
+41
templates/ci/modules/features/forward.nix
templates/ci/modules/features/forward-from-custom-class.nix
reviewed
···
73
73
}
74
74
);
75
75
76
76
+
test-custom-git-class-fowards-to-hm-then-nixos = denTest (
77
77
+
{
78
78
+
den,
79
79
+
lib,
80
80
+
igloo,
81
81
+
...
82
82
+
}:
83
83
+
let
84
84
+
forwarded =
85
85
+
{ class, aspect-chain }:
86
86
+
den._.forward {
87
87
+
each = lib.singleton class;
88
88
+
fromClass = _: "git";
89
89
+
intoClass = _: "homeManager";
90
90
+
intoPath = _: [
91
91
+
"programs"
92
92
+
"git"
93
93
+
];
94
94
+
fromAspect = _: lib.head aspect-chain;
95
95
+
adaptArgs =
96
96
+
{ config, ... }:
97
97
+
{
98
98
+
osConfig = config;
99
99
+
};
100
100
+
};
101
101
+
in
102
102
+
{
103
103
+
den.hosts.x86_64-linux.igloo.users.tux = { };
104
104
+
105
105
+
den.aspects.igloo.homeManager.home.stateVersion = "25.11";
106
106
+
107
107
+
den.aspects.tux = {
108
108
+
includes = [ forwarded ];
109
109
+
git.userEmail = "root@linux.com";
110
110
+
};
111
111
+
112
112
+
expr = igloo.home-manager.users.tux.programs.git.userEmail;
113
113
+
expected = "root@linux.com";
114
114
+
}
115
115
+
);
116
116
+
76
117
};
77
118
}