mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-08-19 02:56:17 +02:00
meta(nix): Move test lib to separate directory
This commit is contained in:
16
lib/test.nix
Normal file
16
lib/test.nix
Normal 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
|
Reference in New Issue
Block a user