Skip to content

Developer Guides

Welcome to the Ghaf Framework developer guides. These guides cover common development tasks and best practices.

GuideDescription
Writing ModulesHow to write NixOS modules for Ghaf
Creating VMsHow to create new VM types
Adding FeaturesHow to add hardware features
Extending TargetsHow to customize existing targets
GuideDescription
Downstream SetupSetting up a downstream project
Migration GuideMigrating from legacy patterns

If you’re contributing to the main Ghaf repository:

  1. Writing Modules - Learn the module conventions
  2. Adding Features - Add new hardware features
  3. Creating VMs - Create new VM types

If you’re building a product based on Ghaf:

  1. Downstream Setup - Start here
  2. Extending Targets - Customize configurations
  3. Migration Guide - If upgrading from legacy patterns

Before diving into the guides, review the architecture documentation:

When you need specific function documentation: