2
0
Fork 0

vbox guests need name

This commit is contained in:
Ehmry - 2020-12-21 20:34:42 +01:00
parent d1d6395fc4
commit a4f86d2d61
1 changed files with 17 additions and 14 deletions

View File

@ -96,24 +96,27 @@ in {
}.${cfg.bootFormat};
in {
inherit name;
value = {
inherit (cfg) routeToNics;
inherit (cfg) routeToNics;
inputs = with pkgs.genodePackages; [ libiconv vbox5 vfs_pipe ];
inputs = with pkgs.genodePackages; [ libiconv vbox5 vfs_pipe ];
coreROMs = [ "platform_info" ];
coreROMs = [ "platform_info" ];
configFile = pkgs.writeText "${name}.vbox.dhall" ''
${./vbox-guest.dhall}
{ bootFilename = "${boot.filename}"
, bootFormat = "${boot.format}"
, bootPkg = "${boot.storeRoot}"
, bootUuid = ${boot.uuid}
, memorySize = ${toString cfg.memorySize}
, nicLabels = ${builtins.toJSON cfg.routeToNics} : List Text
, vmName = "${vmName}"
}
'';
configFile = pkgs.writeText "${name}.vbox.dhall" ''
${./vbox-guest.dhall}
{ bootFilename = "${boot.filename}"
, bootFormat = "${boot.format}"
, bootPkg = "${boot.storeRoot}"
, bootUuid = ${boot.uuid}
, memorySize = ${toString cfg.memorySize}
, nicLabels = ${builtins.toJSON cfg.routeToNics} : List Text
, vmName = "${vmName}"
}
'';
};
}) config.genode.vbox.guests;
};