diff options
author | makefu <github@syntax-fehler.de> | 2015-12-30 14:58:20 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2015-12-30 14:58:20 +0100 |
commit | c625c7d422d5bfe6b4cdbafc6dd9eb0253673776 (patch) | |
tree | e25ab316b05e175b39b8aa292bce3acc6f8f4c4b /krebs/3modules/exim-retiolum.nix | |
parent | ca9e1700ef0deac0b71d4c3e2a6d1ee0a0ccbc42 (diff) | |
parent | b9c4a5e4a0800dbfb6f4cb1d20bbfd2c1d228d11 (diff) |
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'krebs/3modules/exim-retiolum.nix')
-rw-r--r-- | krebs/3modules/exim-retiolum.nix | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/krebs/3modules/exim-retiolum.nix b/krebs/3modules/exim-retiolum.nix index e1315d8c8..ea012c38c 100644 --- a/krebs/3modules/exim-retiolum.nix +++ b/krebs/3modules/exim-retiolum.nix @@ -1,14 +1,12 @@ { config, pkgs, lib, ... }: -with builtins; with lib; let cfg = config.krebs.exim-retiolum; out = { options.krebs.exim-retiolum = api; - config = - mkIf cfg.enable imp; + config = mkIf cfg.enable imp; }; api = { @@ -16,13 +14,13 @@ let }; imp = { - services.exim = - # This configuration makes only sense for retiolum-enabled hosts. - # TODO modular configuration - assert config.krebs.retiolum.enable; - { - enable = true; - config = '' + services.exim = { + enable = true; + config = + # This configuration makes only sense for retiolum-enabled hosts. + # TODO modular configuration + assert config.krebs.retiolum.enable; + '' primary_hostname = ${retiolumHostname} domainlist local_domains = @ : localhost domainlist relay_to_domains = *.retiolum @@ -134,7 +132,7 @@ let begin authenticators ''; - }; + }; }; # TODO get the hostname from somewhere else. |