summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-04-26 14:11:32 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2016-04-26 14:11:32 +0200
commitcdee59b5a3da03e6956a76f8cc6295ef8dbfa14f (patch)
tree4eb4eabe958da982d49603c447e84fd32ceaa5c7
parent593ab2750fcd9910d130db068f3c02d642a02089 (diff)
downloadnixos-cdee59b5a3da03e6956a76f8cc6295ef8dbfa14f.tar
nixos-cdee59b5a3da03e6956a76f8cc6295ef8dbfa14f.tar.gz
nixos-cdee59b5a3da03e6956a76f8cc6295ef8dbfa14f.tar.bz2
nixos-cdee59b5a3da03e6956a76f8cc6295ef8dbfa14f.tar.xz
nixos-cdee59b5a3da03e6956a76f8cc6295ef8dbfa14f.zip
first shot at mail setup on ymir
-rw-r--r--ymir.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/ymir.nix b/ymir.nix
index e116c654..52e43d3e 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -289,4 +289,31 @@ in rec {
289 enable = true; 289 enable = true;
290 basePath = services.gitolite.dataDir + "/repositories"; 290 basePath = services.gitolite.dataDir + "/repositories";
291 }; 291 };
292
293 services.postfix = {
294 enable = true;
295 hostname = "ymir.yggdrasil.li";
296 recipientDelimiter = "+";
297 rootAlias = "gkleen";
298 setSendmail = true;
299 destination = ["yggdrasil.li" "ymir.yggdrasil.li" "mail.yggdrasil.li" "praseodym.org" "ymir.praseodym.org" "mail.praseodym.org" "141.li" "ymir.141.li" "mail.141.li" "xmpp.li" "ymir.xmpp.li" "mail.xmpp.li" "dirty-haskell.org" "mail.dirty-haskell.org" "explainuxul.de" "lmu.li" "localhost.yggdrasil.li" "localhost"];
300 sslCert = "";
301 sslKey = "";
302 };
303
304 services.acme = {
305 certs = {
306 "yggdrasil.li" = {
307 webroot = "/srv/www/acme/yggdrasil.li";
308 allowKeysForGroup = true;
309 email = "phikeebaogobaegh@141.li";
310 extraDomains = builtins.listToAttrs (builtins.map (name: { inherit name; value = "/srv/www/acme/${name}"; })
311 ["git.yggdrasil.li" "dirty-haskell.org" "www.dirty-haskell.org" "141.li" "www.141.li" "xmpp.li" "www.xmpp.li" "www.yggdrasil.li" "praseodym.org" "www.praseodym.org" "mail.dirty-haskell.org" "mail.141.li" "mail.xmpp.li" "mail.yggdrasil.li" "mail.praseodym.org"]);
312 postRun = ''
313 systemctl reload nginx.service
314 prosodyctl reload
315 '';
316 };
317 };
318 };
292} 319}