{ pkgs, lib, config, ... }: let domain = "mail.hemono.fr"; in { virtualisation.docker.enable = true; services.nginx = { enable = true; virtualHosts.${domain} = { forceSSL = true; enableACME = true; locations."/" = { proxyPass = "https://localhost:8081"; }; }; }; }