mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 21:43:29 +01:00
module: Expose tests.bootCommands
Useful for e.g. interactive input during VM boot.
This commit is contained in:
1 parent
da52cf4020
commit
feeb365e31
1 file changed
+9
@@ -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`.
|
||||||
@@ -226,6 +234,7 @@ 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;
|
||||||
extraSystemConfig = cfg.tests.extraConfig;
|
extraSystemConfig = cfg.tests.extraConfig;
|
||||||
extraTestScript = cfg.tests.extraChecks;
|
extraTestScript = cfg.tests.extraChecks;
|
||||||
|
|||||||
Reference in new issue
Block a user