Merge pull request #713 from nix-community/interactiveVM

add interactive VMs
This commit is contained in:
lassulus
2024-08-21 16:12:23 +02:00
committed by GitHub
11 changed files with 206 additions and 63 deletions

View File

@@ -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;
};
};