meta(nix): Move test lib to separate directory

This commit is contained in:
Donovan Glover
2024-04-09 08:02:16 -04:00
parent 5f25e19d3f
commit 7b564db92d
3 changed files with 2 additions and 2 deletions

16
lib/test.nix Normal file
View File

@@ -0,0 +1,16 @@
test: { self, pkgs }:
let
inherit (pkgs.lib) mkDefault;
nixos-lib = import (pkgs.path + "/nixos/lib") { };
in
(nixos-lib.runTest {
imports = [ test ];
hostPkgs = pkgs;
defaults.documentation.enable = mkDefault false;
node.specialArgs = {
nix-config = self;
};
}).config.result