Skip to main content

compose

Function compose 

Source
pub fn compose(
    sys: &SystemConfig,
    init_binary_path: impl Into<String>,
    vm: Option<VmSpec>,
) -> BootManifest
Expand description

Build a BootManifest from a tatara-os system configuration.

  • sys — the tatara-os SystemConfig (authored with (defsystem …)).
  • init_binary_path/nix/store path of the tatara-init binary. In practice you pass the realization of tatara.packages.${system}.init.
  • vm — VM-shape overrides (cpus, memory, network, shares). If None, uses VmSpec::plex_default(<hostname>) with sensible defaults.