nginx configuration is always a bit too cumbersome/inflexible. Notably, header inheritance is a pain (even with the new option to merge headers). So, I switched to Caddy.
github.comnixops-take1/modules/caddy.nix at master · vincentbernat/nixops-take1Playground for NixOps. Contribute to vincentbernat/nixops-take1 development by creating an account on GitHub.