sigil/nixos-modules/eris/rom-memory.nix
Emery Hemingway cd1b95c1d7 nixos: rename genode.boot to genode.core
Have a "boot.…" and a "genode.boot.…" is confusing.
2021-04-09 16:39:06 +02:00

33 lines
785 B
Nix

{ config, pkgs, lib, ... }:
{
config = lib.mkIf (config.genode.core.storeBackend == "memory") {
genode.core.children.eris_vfs = {
package = pkgs.genodePackages.vfs;
configFile = pkgs.writeText "rom-vfs.dhall" ''
let Sigil = env:DHALL_SIGIL
let VFS = Sigil.VFS
in ${./rom-vfs.dhall}
${../partition-type}
Sigil.Init.Resources::{=}
( VFS.vfs
[ VFS.leafAttrs
"tar"
( toMap
{ name =
"${config.system.build.tarball}/tarball/${config.system.build.tarball.fileName}.tar"
}
)
]
)
'';
};
};
}