Describe the bug
The NixOS Caddy module allows to set the Caddy package to use. The default package is caddy, and I would expect setting services.caddy.package to pkgs.caddy2 would allow me to use Caddy 2. Instead, the service fails to start.
Run journalctl -u caddy, you'll see Jul 12 10:28:10 nixos caddy[16485]: [ERROR] first argument must be a subcommand; see 'caddy help'. The Caddy service is not running
Expected behavior
The caddy service starts successfully.
Describe the bug The NixOS Caddy module allows to set the Caddy package to use. The default package is
caddy
, and I would expect settingservices.caddy.package
topkgs.caddy2
would allow me to use Caddy 2. Instead, the service fails to start.To Reproduce
configuration.nix
:nixos-rebuild switch
journalctl -u caddy
, you'll seeJul 12 10:28:10 nixos caddy[16485]: [ERROR] first argument must be a subcommand; see 'caddy help'
. The Caddy service is not runningExpected behavior The caddy service starts successfully.
Notify maintainers @filalex77 @rushmorem @fpletz @zimbatm
Metadata
Maintainer information: