mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 05:23:28 +01:00
module: add vmWithDisko output to system
This commit is contained in:
1 parent
5a9f2498fb
commit
a574d68d37
4 files changed
+121
No files matched your search
+14
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user