diff --git a/nixos-modules/guest-vbox-linux.nix b/nixos-modules/guest-vbox-linux.nix index e78e66b..819bb1a 100644 --- a/nixos-modules/guest-vbox-linux.nix +++ b/nixos-modules/guest-vbox-linux.nix @@ -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; };