mailtngbert/modules/mail.nix

20 lines
472 B
Nix
Raw Normal View History

2022-02-20 18:26:28 +01:00
{ config, pkgs, ... }:
2022-02-20 20:23:21 +01:00
let release = "nixos-21.11";
2022-02-20 18:26:28 +01:00
in {
mailserver = {
enable = true;
fqdn = "mail.example.com";
domains = [ "example.com" "example2.com" ];
loginAccounts = {
"user1@example.com" = {
# nix run nixpkgs.apacheHttpd -c htpasswd -nbB "" "super secret password" | cut -d: -f2 > /hashed/password/file/location
hashedPasswordFile = "/hashed/password/file/location";
aliases = [
];
};
};
};
}