2
0
Fork 0

nixos: add genode.init.children.….configFile to system closure

This commit is contained in:
Ehmry - 2020-11-07 13:58:14 +01:00
parent e9407c3e5d
commit 19ab414671
1 changed files with 10 additions and 4 deletions

View File

@ -135,10 +135,16 @@ in {
system.build.tarball = system.build.tarball =
pkgs.callPackage "${modulesPath}/../lib/make-system-tarball.nix" { pkgs.callPackage "${modulesPath}/../lib/make-system-tarball.nix" {
contents = [ ]; contents = [ ];
storeContents = mapAttrsToList (name: object: { storeContents = let
symlink = "rom/${name}"; romDirs = mapAttrsToList (name: object: {
inherit object; symlink = "rom/${name}";
}) romDirectories; inherit object;
}) romDirectories;
configFiles = mapAttrsToList (name: child: {
symlink = "config/${name}.dhall";
object = child.configFile;
}) config.genode.init.children;
in romDirs ++ configFiles;
compressCommand = "cat"; compressCommand = "cat";
compressionExtension = ""; compressionExtension = "";
}; };