{ config, pkgs, ... }: let svc_domain = config.mine.settings.domain; in { services.nginx.virtualHosts."${svc_domain}" = { forceSSL = true; enableACME = true; root = pkgs.writeTextDir "index.html" '' ${svc_domain} Under Construction ''; }; # setup group for fricloud.dk cert + add nginx to group. # group `main-domain` is used for users that need access to the domain certificate, e.g. murmur security.acme.certs."${svc_domain}".group = config.users.groups.main-domain.name; users.groups.main-domain.members = [ config.users.users.nginx.name ]; }