module: add vmWithDisko output to system

This commit is contained in:
lassulus committed 2024-08-01 13:00:08 +02:00
1 parent 5a9f2498fb
commit a574d68d37
4 files changed
+121

No files matched your search

+14
View File
@@ -69,6 +69,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 = ''
@@ -121,6 +130,11 @@ in
extraSystemConfig = cfg.tests.extraConfig;
extraTestScript = cfg.tests.extraChecks;
};
vmWithDisko = diskoLib.makeVMRunner {
inherit pkgs;
nixosConfig = args;
};
};