Skip to content

Commit

Permalink
Merge branch 'master' into feature/zfs-vdev-types
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Nov 20, 2024
2 parents b1aa08f + c3b83db commit 811fb74
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,14 @@ in
};

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 {
description = ''
Whether efi is enabled for the `system.build.installTest`.
Expand All @@ -163,6 +171,14 @@ in
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 {
description = ''
extra checks to run in the `system.build.installTest`.
Expand Down Expand Up @@ -226,7 +242,9 @@ in
name = "${config.networking.hostName}-disko";
disko-config = builtins.removeAttrs config [ "_module" ];
testMode = "direct";
bootCommands = cfg.tests.bootCommands;
efi = cfg.tests.efi;
enableOCR = cfg.tests.enableOCR;
extraSystemConfig = cfg.tests.extraConfig;
extraTestScript = cfg.tests.extraChecks;
};
Expand Down

0 comments on commit 811fb74

Please sign in to comment.