mail2-nixos-config/mailserver.nix

28 lines
736 B
Nix

{ config, pkgs, ... }:
let mymailserver = (import <nixpkgs> {}).pkgs.fetchgit {
url = "https://codeberg.org/tokudan/nixos-mailserver.git";
rev = "8b91473d160ef7d78e4b84b4f083686bad73f537";
sha256 = "16w4arijwa306nm15dccqdgiw93kbav1ag7idlgffqkd1d04mz7r";
};
in
{
# Import some configuration as they are too long to be easily readable here
imports = [
#./dovecot.nix
#./postfix.nix
#./postfixadmin.nix
#./roundcube.nix
#./rspamd.nix
"${mymailserver}/default.nix"
];
networking.domain = "hamburg.freifunk.net";
services.mymailserver = {
enable = true;
logging = false;
adminAddress = "postmaster@mail.hamburg.freifunk.net";
mailFQDN = "mail2.hamburg.freifunk.net";
};
}