{ config, lib, pkgs, ... }: { services.nginx.enable = true; users.users."up" = { isNormalUser = true; group = config.services.nginx.group; createHome = true; }; services.nginx.virtualHosts."srv.isomorphis.me" = { forceSSL = true; enableACME = true; root = config.users.users."up".home; locations."/" = { extraConfig = '' autoindex on; ''; }; locations."/i/" = { extraConfig = '' autoindex off; ''; }; }; }