mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 22:13:28 +01:00
Merge branch 'master' into feature/zfs-vdev-types
This commit is contained in:
1 file changed
+18
+18
@@ -153,6 +153,14 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
tests = {
|
tests = {
|
||||||
|
bootCommands = lib.mkOption {
|
||||||
|
description = ''
|
||||||
|
NixOS test script commands to run after the machine has started. Can
|
||||||
|
be used to enter an interactive password.
|
||||||
|
'';
|
||||||
|
type = lib.types.lines;
|
||||||
|
};
|
||||||
|
|
||||||
efi = lib.mkOption {
|
efi = lib.mkOption {
|
||||||
description = ''
|
description = ''
|
||||||
Whether efi is enabled for the `system.build.installTest`.
|
Whether efi is enabled for the `system.build.installTest`.
|
||||||
@@ -163,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`.
|
||||||
@@ -226,7 +242,9 @@ in
|
|||||||
name = "${config.networking.hostName}-disko";
|
name = "${config.networking.hostName}-disko";
|
||||||
disko-config = builtins.removeAttrs config [ "_module" ];
|
disko-config = builtins.removeAttrs config [ "_module" ];
|
||||||
testMode = "direct";
|
testMode = "direct";
|
||||||
|
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