From 1ddcff717c43167de66396166388d4653d306aa8 Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 20 Jul 2023 21:32:53 +0200 Subject: [PATCH] module: pass makeTest and eval-config to diskoLib --- lib/tests.nix | 2 +- module.nix | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/tests.nix b/lib/tests.nix index fefffe4..ba40265 100644 --- a/lib/tests.nix +++ b/lib/tests.nix @@ -46,7 +46,7 @@ let , extraSystemConfig ? { } , efi ? true , postDisko ? "" - , testMode ? "module" # can be direct or module + , testMode ? "module" # can be one of direct module cli , testBoot ? true # if we actually want to test booting or just create/mount }: let diff --git a/module.nix b/module.nix index b6815d2..c2aa8f3 100644 --- a/module.nix +++ b/module.nix @@ -3,6 +3,8 @@ let diskoLib = import ./lib { inherit lib; rootMountPoint = config.disko.rootMountPoint; + makeTest = import (pkgs.path + "/nixos/tests/make-test-python.nix"); + eval-config = import (pkgs.path + "/nixos/lib/eval-config.nix"); }; cfg = config.disko; in