flakesonnix/nixpbx — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a Nix flake that lets me run FreePBX 17 on NixOS in a clean declarative way. I want to be able to add it to my flake, turn on services.freepbx.enable, rebuild the server, and then open the FreePBX admin page in a browser.

Please package FreePBX from the official FreePBX GitHub sources and provide both a buildable package and a NixOS module. The module should set up the things FreePBX needs, including MariaDB, Apache, PHP, Asterisk, systemd services, writable state under /var/lib/freepbx, and optional firewall rules for SIP and RTP. Keep passwords out of the Nix store by using password file options.

Also include basic docs, a quick start example, a microVM example if it fits, and tests that prove the module evaluates and the main services work. Look up current NixOS and FreePBX docs online if you need to.

Want more depth? Deep Reverse