summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2019-06-22 12:43:32 +0200
committertv <tv@krebsco.de>2019-06-22 12:43:32 +0200
commit167176b41790541bd6a03f0ba1358b3d70a0531f (patch)
tree70fc8486dfd4e25561cea00cde5fa6c1046af74a /krebs/3modules
parentf63aa737e6c8c693b67af930a8d7286ad60ce942 (diff)
exim-retiolum module: drop api and imp
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/exim-retiolum.nix18
1 files changed, 5 insertions, 13 deletions
diff --git a/krebs/3modules/exim-retiolum.nix b/krebs/3modules/exim-retiolum.nix
index e08024977..bf37a1ef7 100644
--- a/krebs/3modules/exim-retiolum.nix
+++ b/krebs/3modules/exim-retiolum.nix
@@ -1,15 +1,8 @@
-{ config, pkgs, lib, ... }:
-
with import <stockholm/lib>;
-let
+{ config, pkgs, lib, ... }: let
cfg = config.krebs.exim-retiolum;
-
- out = {
- options.krebs.exim-retiolum = api;
- config = lib.mkIf cfg.enable imp;
- };
-
- api = {
+in {
+ options.krebs.exim-retiolum = {
enable = mkEnableOption "krebs.exim-retiolum";
local_domains = mkOption {
type = with types; listOf hostname;
@@ -29,8 +22,7 @@ let
];
};
};
-
- imp = {
+ config = lib.mkIf cfg.enable {
krebs.exim = {
enable = true;
config =
@@ -118,4 +110,4 @@ let
'';
};
};
-in out
+}