Skip to content

wordpress-nix

Read-only WordPress sites built with Nix: a stock Bedrock repository served by FrankenPHP on NixOS, with migrate-on-deploy and a tool that converts legacy sites.

NixOSActiveMIT
View on GitHub (opens in a new tab)Documentation (opens in a new tab)
Platform

NixOS

License
MIT
Status
Active
Part of

The Nix platform

Most WordPress hosting is a pile of hand-tuned servers. wordpress-nix replaces that with a single, shared Nix codebase. Each site is a stock Roots Bedrock repository, Nix builds its composer.lock into an immutable tree, and a NixOS module serves it with FrankenPHP. It's for agencies and site owners who want fast, reproducible WordPress hosting they control.

Features

  • Read-only by construction. Core, plugins and themes come from Composer, the document root is an immutable store path, and the only writable directory is uploads, which never runs PHP. Every change goes through git.

  • Optimized runtime. PHP 8.3, 8.4 or 8.5 per site, served by FrankenPHP, with JIT and optional CPU-specific build flags.

  • Safe deploys. The module migrates the database behind a verified snapshot, rolls back on failure, and runs WordPress cron from a timer.

  • Platform hardening. Built-in mu-plugins for the runtime posture (two-factor for administrators, no application passwords, no executable uploads, no mail outside production) and user-enumeration protection, so sites don't need extra plugins.

  • Legacy conversion. A CLI pulls a classic WordPress install read-only and converts it into a Bedrock site, with tools to audit a MySQL dump before it is restored and to verify core files against wordpress.org.

  • Site CI. Reusable workflows gate, relock and audit every site repository.

Getting started

You need Nix with flakes. Lay down a new site from the template, then follow the documentation:

nix flake new -t github:Avunu/wordpress site-example

Related projects

All open-source projects

frappe-nix

Active

Reproducible Nix infrastructure for Frappe and ERPNext, from the development shell to OCI containers and a multi-site NixOS module.

odoo-nix

Active

Reproducible Nix infrastructure for Odoo Community (OCB) and OCA, from scaffolding projects and addon repositories to repository standards, CI, containers, and NixOS.

Web Kiosk

Stable

A USB-booting NixOS image that turns an x86 computer into a locked-down Firefox kiosk for a single web page.

Need help with it?

Need this implemented? We host WordPress on this platform as part of our Websites and managed infrastructure services.