{pkgs, ...}: let path = "/var/www/blog/"; in { imports = [../nginx.nix]; services.nginx = { recommendedBrotliSettings = true; recommendedGzipSettings = true; recommendedTlsSettings = true; recommendedOptimisation = true; package = pkgs.nginxQuic; virtualHosts = { "blog.cyplo.dev" = { forceSSL = true; enableACME = true; quic = true; extraConfig = '' ''; locations."/" = { root = path; }; }; "blog.cyplo.net" = { forceSSL = true; enableACME = true; globalRedirect = "blog.cyplo.dev"; }; }; }; users.extraUsers.blog = { openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICt4yRr0Vl4rkto79Subis0LY8z3+g0VRAM7xf+YfLKO blog@mb1" ]; group = "nginx"; isSystemUser = false; isNormalUser = true; home = path; createHome = true; homeMode = "750"; }; }