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