interactive-vm: convert into NixOS module

This commit is contained in:
Michael Hoang
2024-09-08 03:29:33 +10:00
parent ba66c22ec1
commit 0943a50ee7
3 changed files with 44 additions and 46 deletions

View File

@@ -8,9 +8,12 @@ let
};
cfg = config.disko;
vmVariantWithDisko = diskoLib.makeVMRunner {
inherit pkgs;
nixosConfig = args;
vmVariantWithDisko = extendModules {
modules = [
./lib/interactive-vm.nix
{ _module.args = { inherit diskoLib; }; }
config.disko.tests.extraConfig
];
};
in
{