Skip to content

Developer Guides

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

Guide Description
Writing Modules How to write NixOS modules for Ghaf
Creating VMs How to create new VM types
Adding Features How to add hardware features
Extending Targets How to customize existing targets
Guide Description
Downstream Setup Setting up a downstream project
Migration Guide Migrating 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: