8 node-forbiddenDependencies-fail = nixos (
11 system.forbiddenDependenciesRegexes = [ "-dev$" ];
12 environment.etc."dev-dependency" = {
13 text = "${expect.dev}";
15 documentation.enable = false;
16 fileSystems."/".device = "ignore-root-device";
17 boot.loader.grub.enable = false;
20 node-forbiddenDependencies-succeed = nixos (
23 system.forbiddenDependenciesRegexes = [ "-dev$" ];
24 system.extraDependencies = [ expect.dev ];
25 documentation.enable = false;
26 fileSystems."/".device = "ignore-root-device";
27 boot.loader.grub.enable = false;
31 lib.recurseIntoAttrs {
32 test-forbiddenDependencies-fail = testers.testBuildFailure node-forbiddenDependencies-fail.config.system.build.toplevel;
33 test-forbiddenDependencies-succeed =
34 node-forbiddenDependencies-succeed.config.system.build.toplevel;