NixOS
How we run Frappe, Odoo, and WordPress on declarative, reproducible infrastructure: our open-source Nix projects and a self-hosting reference architecture.
On this page
This section covers running business systems and devices on Nix and NixOS: getting a machine ready, why we use Nix, the self-hosting reference architecture, and where each Avunu Nix project's documentation lives. Frappe, Odoo and WordPress each have a Nix project that provides a development shell and a NixOS module, so the same description builds on a laptop and runs on a server. Their documentation lives with each project.
Getting Started
New to Nix? The official Nix documentation and NixOS manual are good starting points. Then read why we use it, and when we would not.
Get started with Nix development on a new host — Set up a new Mac, Windows (WSL) or NixOS machine with Nix, direnv and VS Code, then clone a project and allow direnv.
Why Nix for Business Systems — What Nix and NixOS give a business running Frappe, Odoo or WordPress, how Avunu applies them, and when not to use them.
Project documentation
Each Avunu Nix project keeps its own documentation next to its code, so it changes with the project. It is published at docs.avunu.net.
frappe-nix — Frappe and ERPNext benches: the development shell, production images, the
services.frappe-nixNixOS module and app standards.odoo-nix — Odoo Community and OCA projects: the development shell, the
odoocommand, theservices.odoo-nixNixOS module and repository standards.wordpress-nix — Read-only Bedrock WordPress sites on FrankenPHP: the build, the NixOS module, site CI and converting a legacy site.
web_kiosk — A bootable NixOS image that opens Firefox in kiosk mode on one URL and joins your WiFi automatically.
nixos-micro-desktop — A lean, self-maintaining NixOS desktop with a choice of three shells, declarative disks and automatic updates.
nixos-rclone — Live rclone mounts and event-driven two-way sync on NixOS, including Markdown to Google Docs conversion for an Obsidian vault.
Hosting Architecture
Reference Architecture for Self-Hosting Business Systems — Bare-metal NixOS with Nomad, systemd-nspawn, Cloudflare Tunnel, ZFS and JuiceFS, without Kubernetes.
This section is in the public domain (CC0 1.0), code samples included. Use it however helps you.