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;