{ config, lib, pkgs, inputs, ... }: { imports = [ inputs.simple-nixos-mailserver ]; sops.secrets."mail/hashedPassword" = {}; mailserver = { enable = false; fqdn = "mail.stuebinm.eu"; domains = [ "stuebinm.eu" ]; # A list of all login accounts. To create the password hashes, use # nix run nixpkgs.apacheHttpd -c htpasswd -nbB "" "super secret password" | cut -d: -f2 loginAccounts = { "hello@stuebinm.eu" = { hashedPasswordFile = "/run/secrets/mail/hashedPassword"; aliases = ["postmaster@stuebinm.eu" "abuse@stuebinm.eu"]; }; }; # Use Let's Encrypt certificates. Note that this needs to set up a stripped # down nginx and opens port 80. certificateScheme = "acme-nginx"; }; }