mail2-nixos-config/mailserver.nix

28 lines
736 B
Nix
Raw Normal View History

2019-05-10 23:21:28 +02:00
{ config, pkgs, ... }:
let mymailserver = (import <nixpkgs> {}).pkgs.fetchgit {
url = "https://codeberg.org/tokudan/nixos-mailserver.git";
2021-08-23 21:36:31 +02:00
rev = "e99eb3c2686406611aebae271d81b6cb7715f6e7";
sha256 = "01m1wm70fs637jps24sqyygx6lmgak4dwrd0055bf1xk564jc57j";
};
in
2019-05-10 23:21:28 +02:00
{
# 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"
2019-05-10 23:21:28 +02:00
];
networking.domain = "hamburg.freifunk.net";
services.mymailserver = {
enable = true;
logging = false;
adminAddress = "postmaster@mail.hamburg.freifunk.net";
mailFQDN = "mail2.hamburg.freifunk.net";
};
2019-05-10 23:21:28 +02:00
}