diff options
author | tv <tv@shackspace.de> | 2015-10-05 03:01:21 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-10-05 03:09:01 +0200 |
commit | 8167fe985a9d97ec4fd9c5b1c2d559deba100642 (patch) | |
tree | aa2993e96d9063a8a45c4eed74276da23654a362 /krebs | |
parent | 04c0f3935b257ab3cd396a5274f691e982c8dba3 (diff) |
define spam-ml in krebs/3modules
Diffstat (limited to 'krebs')
-rw-r--r-- | krebs/3modules/default.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/krebs/3modules/default.nix b/krebs/3modules/default.nix index 9ec9d0a8a..6db39701a 100644 --- a/krebs/3modules/default.nix +++ b/krebs/3modules/default.nix @@ -105,6 +105,23 @@ let combined-hosts = (mapAttrsToList (name: value: value.extraZones) cfg.hosts ); in lib.mapAttrs' (name: value: nameValuePair (("zones/" + name)) ({ text=value; })) all-zones; + krebs.exim-smarthost.internet-aliases = let + format = from: to: + # TODO assert is-retiolum-mail-address to; + { inherit from; + to = if typeOf to == "list" + then concatMapStringsSep "," (getAttr "mail") to + else to.mail; }; + in mapAttrsToList format (with config.krebs.users; let + spam-ml = [ + lass + makefu + tv + ]; + in { + "spam@krebsco.de" = spam-ml; + }); + services.openssh.hostKeys = let inherit (config.krebs.build.host.ssh) privkey; in mkIf (privkey != null) (mkForce [privkey]); |