nixos: support for an empty second-level init

This commit is contained in:
Ehmry - 2021-03-20 19:50:32 +01:00
parent 21471b5754
commit d85ba92b5a
1 changed files with 5 additions and 3 deletions

View File

@ -108,8 +108,8 @@ in {
configFile = let
children =
lib.mapAttrsToList (name: value: ", `${name}` = ${value.config} ")
children = lib.mapAttrsToList
(name: value: '', { mapKey = "${name}", mapValue = ${value.config} }'')
children';
nicRoutes = lib.mapAttrsToList (child: value:
@ -129,7 +129,9 @@ in {
in baseConfig // {
, verbose = ${if config.genode.init.verbose then "True" else "False"}
, children = baseConfig.children # toMap {${toString children} }
, children = baseConfig.children # ([ ${
toString children
} ] : Genode.Init.Children.Type)
, routes = baseConfig.routes # ([${
toString nicRoutes
}] : List Genode.Init.ServiceRoute.Type)