cleverca22
4/21/2017 - 2:22 PM

nginx-example.nix

{ ... }:

{
  services.nginx = {
    enable = true;
    virtualHosts = {
      "example.com" = {
        forceSSL = true;
        enableACME = true;
        locations = {
          "/".root = "/var/www/docroot";
        };
      };
    };
  };
}