Skip to content

Commit 813c6fb

Browse files
zowoqphaer
authored andcommitted
set documentation.nixos.includeAllModules for test configs
ensures that all options evaluate
1 parent cb48be2 commit 813c6fb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

dev/test-configurations.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ let
2121

2222
systemd.enableStrictShellChecks = true;
2323

24+
documentation.nixos.includeAllModules = true;
25+
2426
# Don't reinstantiate nixpkgs for every nixos eval.
2527
# Also important to have nixpkgs config which allows for some required insecure packages
2628
nixpkgs = {
@@ -42,6 +44,16 @@ in
4244
self.nixosModules.server
4345
];
4446
};
47+
example-server-docs = nixosSystem {
48+
modules = [
49+
dummy
50+
self.nixosModules.server
51+
{
52+
# docs disabled by default for server
53+
srvos.server.docs.enable = true;
54+
}
55+
];
56+
};
4557
example-desktop = nixosSystem {
4658
modules = [
4759
dummy
@@ -169,6 +181,7 @@ in
169181
self.nixosModules.roles-github-actions-runner
170182
dummy
171183
{
184+
documentation.nixos.includeAllModules = lib.mkForce false;
172185
systemd.services.cachix-watch-store-agent.enableStrictShellChecks = false;
173186
roles.github-actions-runner.cachix.cacheName = "cache-name";
174187
roles.github-actions-runner.cachix.tokenFile = "/run/cachix-token-file";
@@ -182,6 +195,7 @@ in
182195
self.nixosModules.roles-github-actions-runner
183196
dummy
184197
{
198+
documentation.nixos.includeAllModules = lib.mkForce false;
185199
systemd.services.cachix-watch-store-agent.enableStrictShellChecks = false;
186200
roles.github-actions-runner.cachix.cacheName = "cache-name";
187201
roles.github-actions-runner.cachix.tokenFile = "/run/cachix-token-file";
@@ -199,6 +213,7 @@ in
199213
self.nixosModules.roles-github-actions-runner
200214
dummy
201215
{
216+
documentation.nixos.includeAllModules = lib.mkForce false;
202217
systemd.services.cachix-watch-store-agent.enableStrictShellChecks = false;
203218
roles.github-actions-runner = {
204219
githubApp = {

0 commit comments

Comments
 (0)