diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-03-18 00:14:27 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-03-18 00:17:13 +0100 |
commit | 6b857eebbafba660cc57b19bd11f6484c91f8fd7 (patch) | |
tree | 3432dce53097598149cc64087d908ad35e038437 /modules | |
parent | bdb1643acdb75d92f10559be06ea9448461ddf12 (diff) |
Integrate Postfix config into module-list.nix.
This currently is just a dummy module for now with a big fat TODO, but at least we now have a homogenous module namespace starting with "labernix." and categorized by services/config/tasks/whatnot. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/module-list.nix | 1 | ||||
-rw-r--r-- | modules/services/postfix/default.nix | 1 | ||||
-rw-r--r-- | modules/services/postfix/restrictions.nix (renamed from modules/postfix/restrictions.nix) | 4 |
3 files changed, 4 insertions, 2 deletions
diff --git a/modules/module-list.nix b/modules/module-list.nix index 864019b1..5137c672 100644 --- a/modules/module-list.nix +++ b/modules/module-list.nix @@ -1,3 +1,4 @@ [ ./config/labernix-pkgs.nix + ./services/postfix ] diff --git a/modules/services/postfix/default.nix b/modules/services/postfix/default.nix new file mode 100644 index 00000000..4103a41b --- /dev/null +++ b/modules/services/postfix/default.nix @@ -0,0 +1 @@ +import ./restrictions.nix # TODO: Dummy for now, implement me! diff --git a/modules/postfix/restrictions.nix b/modules/services/postfix/restrictions.nix index 8f2412ca..fbb47f10 100644 --- a/modules/postfix/restrictions.nix +++ b/modules/services/postfix/restrictions.nix @@ -14,7 +14,7 @@ let ''; }; config = let - cfg = config.openlab.postfix.restrictions.${name}; + cfg = config.labernix.postfix.restrictions.${name}; in mkIf (cfg != null) '' smtpd_${name}_restrictions = ${concatStringsSep ", " cfg} ''; @@ -49,5 +49,5 @@ let ''; }; in { - options.openlab.postfix.restrictions = mapAttrs mkRestriction restrictions; + options.labernix.postfix.restrictions = mapAttrs mkRestriction restrictions; } |