How gngram/ghaf works
Ghaf is a Nix-based framework for building compartmentalized, security-focused operating systems for edge devices. Its user-facing path is to select or extend a hardware configuration, build an image, then install or boot it. The tree also shows distinct security, VM, update, and network-boot capabilities. Relationships between most Nix subsystems could not be verified from the sampled source, so those links are dashed and have no evidence path; documented build and installation capabilities are cited to the README.
Main entry points: builders Image builders · microvm MicroVM composition · targets Hardware targets · reference Reference configurations
Components 19
Configuration and builds
- Hardware targets
targets - Reference configurations
modules/reference - Image builders
lib/builders
VM and hardware
- Common system modules
modules/common - MicroVM composition
modules/microvm - Hardware support
modules/hardware - Fake battery driver
modules/hardware/x86_64-generic/kernel/modules/fake-battery/fake_battery.c - GIVC integration
modules/givc
Security services
- Security modules
modules/common/security - Enrollment verifier
packages/pkgs-by-name/ghaf-verify-enrollment/verify-enrollment.py
Image delivery
- Installer
packages/pkgs-by-name/ghaf-installer - ESP boot contents
modules/reference/hardware/jetpack/nvidia-jetson-orin/mk-esp-contents.py - Flash layout
modules/reference/hardware/jetpack/nvidia-jetson-orin/splice-flash-xml.py - Netboot API
packages/pkgs-by-name/ghaf-netboot/ghaf-netboot-api.py - Update manifests
packages/pkgs-by-name/ghaf-update-manifest/ghaf-update-manifest.py
Runtime utilities
- GPU partition probe
packages/gpu-vm-green-context-probe/runner.c - GPU load smoke test
packages/gpu-vm-load/runner.c - Normal-browser extension
packages/chrome-extensions/open-normal/src/open_normal.js
Other components
- System integrator
Connections 14
- System integrator → Hardware targets: selects hardware
- System integrator → Image builders: builds images
README.md - System integrator → Installer: uses installer
README.md - Hardware targets → Reference configurations: configures
- Reference configurations → Image builders: configures build
- Image builders → MicroVM composition: composes VMs
- Image builders → Common system modules: configures system
- MicroVM composition → Hardware support: assigns devices
- Common system modules → Security modules: applies security
- Hardware support → Fake battery driver: includes driver
- MicroVM composition → GIVC integration: integrates control
- Image builders → ESP boot contents: prepares boot
- Image builders → Flash layout: prepares flashing
- Netboot API → System integrator: serves boot clients