pub struct FlakeRunConfig {
pub name: String,
pub slot: VmSlot,
pub vmlinux_path: String,
pub initrd_path: Option<String>,
pub rootfs_path: String,
pub revision_hash: String,
pub flake_ref: String,
pub profile: Option<String>,
pub cpus: u32,
pub memory: u32,
pub volumes: Vec<RuntimeVolume>,
}Expand description
Configuration for running a Firecracker VM from flake-built artifacts.
Fields§
§name: StringVM name (user-provided or auto-generated).
slot: VmSlotNetwork slot for this VM.
vmlinux_path: StringAbsolute path to the kernel image inside the Lima VM.
initrd_path: Option<String>Absolute path to the initial ramdisk (NixOS stage-1), if present.
rootfs_path: StringAbsolute path to the root filesystem inside the Lima VM.
revision_hash: StringNix store revision hash.
flake_ref: StringOriginal flake reference (for display / status).
profile: Option<String>Flake profile name (e.g. “worker”, “gateway”), if specified.
cpus: u32Number of vCPUs.
memory: u32Memory in MiB.
volumes: Vec<RuntimeVolume>Extra volumes to attach (mounted via config drive, not SSH).
Auto Trait Implementations§
impl Freeze for FlakeRunConfig
impl RefUnwindSafe for FlakeRunConfig
impl Send for FlakeRunConfig
impl Sync for FlakeRunConfig
impl Unpin for FlakeRunConfig
impl UnsafeUnpin for FlakeRunConfig
impl UnwindSafe for FlakeRunConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more