exim-retiolum module: drop api and imp

This commit is contained in:
tv 2019-06-22 12:43:32 +02:00
parent f63aa737e6
commit 167176b417

View File

@ -1,15 +1,8 @@
{ config, pkgs, lib, ... }:
with import <stockholm/lib>; with import <stockholm/lib>;
let { config, pkgs, lib, ... }: let
cfg = config.krebs.exim-retiolum; cfg = config.krebs.exim-retiolum;
in {
out = { options.krebs.exim-retiolum = {
options.krebs.exim-retiolum = api;
config = lib.mkIf cfg.enable imp;
};
api = {
enable = mkEnableOption "krebs.exim-retiolum"; enable = mkEnableOption "krebs.exim-retiolum";
local_domains = mkOption { local_domains = mkOption {
type = with types; listOf hostname; type = with types; listOf hostname;
@ -29,8 +22,7 @@ let
]; ];
}; };
}; };
config = lib.mkIf cfg.enable {
imp = {
krebs.exim = { krebs.exim = {
enable = true; enable = true;
config = config =
@ -118,4 +110,4 @@ let
''; '';
}; };
}; };
in out }