mirror of
https://github.com/nix-community/disko.git
synced 2026-12-05 15:33:28 +01:00
module: Expose tests.enableOCR
Given we now have tests.bootCommands, in some cases the test script given will need OCR enabled.
This commit is contained in:
1 parent
feeb365e31
commit
c3b83db725
1 file changed
+9
@@ -171,6 +171,14 @@ in
|
|||||||
default = config.boot.loader.systemd-boot.enable || config.boot.loader.grub.efiSupport;
|
default = config.boot.loader.systemd-boot.enable || config.boot.loader.grub.efiSupport;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enableOCR = lib.mkOption {
|
||||||
|
description = ''
|
||||||
|
Sets the enableOCR option in the NixOS VM test driver.
|
||||||
|
'';
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
|
||||||
extraChecks = lib.mkOption {
|
extraChecks = lib.mkOption {
|
||||||
description = ''
|
description = ''
|
||||||
extra checks to run in the `system.build.installTest`.
|
extra checks to run in the `system.build.installTest`.
|
||||||
@@ -236,6 +244,7 @@ in
|
|||||||
testMode = "direct";
|
testMode = "direct";
|
||||||
bootCommands = cfg.tests.bootCommands;
|
bootCommands = cfg.tests.bootCommands;
|
||||||
efi = cfg.tests.efi;
|
efi = cfg.tests.efi;
|
||||||
|
enableOCR = cfg.tests.enableOCR;
|
||||||
extraSystemConfig = cfg.tests.extraConfig;
|
extraSystemConfig = cfg.tests.extraConfig;
|
||||||
extraTestScript = cfg.tests.extraChecks;
|
extraTestScript = cfg.tests.extraChecks;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user