Skip to content

Instantly share code, notes, and snippets.

@jeaye
Created January 17, 2021 01:37
makeVirtualHost = domain:
{
hostName = domain;
serverAliases = [("www." + domain)];
enableSSL = false;
documentRoot = "/etc/user/http/" + domain;
};
services.httpd.virtualHosts = (map makeVirtualHost domains);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment