Merge pull request #713 from nix-community/interactiveVM
add interactive VMs
This commit is contained in:
14
module.nix
14
module.nix
@@ -99,6 +99,15 @@ in
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
testMode = lib.mkOption {
|
||||
internal = true;
|
||||
description = ''
|
||||
this is true if the system is being run in test mode.
|
||||
like a vm test or an interactive vm
|
||||
'';
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
tests = {
|
||||
efi = lib.mkOption {
|
||||
description = ''
|
||||
@@ -151,6 +160,11 @@ in
|
||||
extraSystemConfig = cfg.tests.extraConfig;
|
||||
extraTestScript = cfg.tests.extraChecks;
|
||||
};
|
||||
|
||||
vmWithDisko = diskoLib.makeVMRunner {
|
||||
inherit pkgs;
|
||||
nixosConfig = args;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user