{ pkgs, lib, config, ... }: let inherit (builtins) readFile; inherit (config.services) dovecot2; stateDir = "/var/lib/dovecot"; domain = "autogeree.net"; domainGroup = "autogeree"; in { services.dovecot2.extraConfig = let domainConfig = '' ssl_cert = /, to let dovecot # rename acl.db.lock (own by new user) # to acl.db (own by old user) chmod -t ${stateDir}/acl/${domain} ''; }; services.nginx.virtualHosts."autoconfig.${domain}" = { serverName = "autoconfig.${domain}"; #addSSL = true; extraConfig = '' access_log off; log_not_found off; ''; root = ./autoconfig; }; }