A small Nix Flake with caddy+php for local dev

Hi there,

I’m new to KirbyCMS (6mo, and loving it) and even more to NixOS (2 weeks and loving it too!) and decided to make a small flake to easily dev from any of my machines in a matter of minutes.

Here it is, and what it does it simply this:

  • Enter the folder, if you activated direnv, your setup is preloaded
  • run nix run and caddy, php will launch automatically, along side a hot reload process
  • past/git clone any site you want under sites/kirbycms1 and the hot reload job will run composer and reload the projects list for you

Hope that can help fellow Kirby Nixers!
Let me know if you run into issues :slight_smile:

Cheers,

Cyrille

1 Like