krebs.exim-retiolum: assert krebs.retiolum.enable

This commit is contained in:
tv 2015-08-13 12:08:36 +02:00
parent 6c2c01b5cb
commit 9f92ba455c

View File

@ -8,11 +8,7 @@ let
out = {
options.krebs.exim-retiolum = api;
config =
# This configuration makes only sense for retiolum-enabled hosts.
# TODO modular configuration
mkIf cfg.enable (
#assert config.krebs.retiolum.enable;
imp);
mkIf cfg.enable imp;
};
api = {
@ -20,7 +16,11 @@ let
};
imp = {
services.exim = {
services.exim =
# This configuration makes only sense for retiolum-enabled hosts.
# TODO modular configuration
assert config.krebs.retiolum.enable;
{
enable = true;
config = ''
primary_hostname = ${retiolumHostname}