From 76f8c40df68bb1269a7441b213b33f3f032b2259 Mon Sep 17 00:00:00 2001 From: Robin Raymond Date: Tue, 21 Nov 2017 11:47:15 +0100 Subject: [PATCH] rename virtualAliases -> extraVirtualAliases --- default.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index ee12213..c6195a9 100644 --- a/default.nix +++ b/default.nix @@ -115,8 +115,9 @@ in default = {}; }; - virtualAliases = mkOption { + extraVirtualAliases = mkOption { type = types.attrsOf (types.enum (builtins.attrNames cfg.loginAccounts)); + warnings = [ "virtualAliases had been derprecated. Use extraVirtualAliases instead or use the `aliases` field of the loginAccount attribute set"]; example = { "info@example.com" = "user1@example.com"; "postmaster@example.com" = "user1@example.com"; @@ -133,6 +134,20 @@ in default = {}; }; + virtualAliases = mkOption { + type = types.attrsOf (types.enum (builtins.attrNames cfg.loginAccounts)); + warnings = [ "virtualAliases had been derprecated. Use extraVirtualAliases instead or use the `aliases` field of the loginAccount attribute set"]; + example = { + "info@example.com" = "user1@example.com"; + "postmaster@example.com" = "user1@example.com"; + "abuse@example.com" = "user1@example.com"; + }; + description = '' + Alias for extraVirtualAliases. + ''; + default = {}; + }; + vmailUID = mkOption { type = types.int; default = 5000;