2
0
Fork 0

fixup nixos-module

This commit is contained in:
Ehmry - 2020-05-21 23:25:46 +05:30
parent a197052b2d
commit feaf15a6f0
2 changed files with 5 additions and 4 deletions

View File

@ -19,7 +19,7 @@ let
guestChildren = lib'.runDhallCommand "vbox.dhall" { } (''
dhall > $out << END
let Genode = env:GENODE_DHALL
let Genode = env:DHALL_GENODE
let toVbox = ${./dhall/vbox-guest.dhall}
in [
'' + builtins.concatStringsSep "," (lib.mapAttrsToList (vmName: cfg:
@ -28,11 +28,11 @@ let
vdiFile = "${toVdi config}/nixos.vdi";
in ''
{ mapKey = "vbox-${vmName}"
, mapValule =
, mapValue =
toVbox
{ vdiFilename = "${vdiFile}"
, vdiUuid =
"\$(${pkgs.virtualbox}/bin/VBoxManage showmediuminfo ${vdiFile} | awk '/^UUID:/ {print \$2}')"
"$(${pkgs.virtualbox}/bin/VBoxManage showmediuminfo ${vdiFile} | awk '/^UUID:/ {print \$2}')"
, memorySize = ${toString config.virtualbox.memorySize}
, vmName = "${vmName}"
}

View File

@ -491,7 +491,8 @@ let rootInit =
(Some "nic_drv")
]
}
, guests = toChild Init::{ children = guests } Init.Attributes::{=}
, guests =
Init.toChild Init::{ children = guests } Init.Attributes::{=}
}
}