mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 14:03:28 +01:00
move tests/lib.nix into diskoLib.testLib
This commit is contained in:
1 parent
cd38be93db
commit
056637d3c9
24 files changed
+55
-28
No files matched your search
+7
-1
@@ -1,10 +1,16 @@
|
||||
{ lib, rootMountPoint }:
|
||||
{ lib ? import <nixpkgs/lib>
|
||||
, rootMountPoint ? "/mnt"
|
||||
, makeTest ? import <nixpkgs/nixos/tests/make-test-python.nix>
|
||||
, eval-config ? import <nixpkgs/nixos/lib/eval-config.nix>
|
||||
}:
|
||||
with lib;
|
||||
with builtins;
|
||||
|
||||
let
|
||||
|
||||
diskoLib = {
|
||||
|
||||
testLib = import ./tests.nix { inherit lib makeTest eval-config; };
|
||||
# like lib.types.oneOf but instead of a list takes an attrset
|
||||
# uses the field "type" to find the correct type in the attrset
|
||||
subType = { types, extraArgs ? { parent = { type = "rootNode"; name = "root"; }; } }: lib.mkOptionType rec {
|
||||
|
||||
Reference in new issue
Block a user