Add alias options

This commit is contained in:
niten 2023-09-24 23:26:41 -07:00
parent 8b2845a1b2
commit c987d118fd
1 changed files with 18 additions and 2 deletions

View File

@ -41,6 +41,22 @@ in {
default = [ ];
};
aliases = {
user-aliases = mkOption {
type = attrsOf (listOf str);
description =
"Map of username to list of aliases mapping to that user.";
default = { };
};
alias-users = mkOption {
type = attrsOf (listOf str);
description =
"Map of alias user to list of users who should receive email..";
default = { };
};
};
metrics-port = mkOption {
type = port;
description = "Port on which to serve metrics.";
@ -248,8 +264,8 @@ in {
dns = cfg.blacklist.dns;
};
aliases = {
user-aliases = cfg.user-aliases;
alias-users = cfg.alias-users;
user-aliases = cfg.aliases.user-aliases;
alias-users = cfg.aliases.alias-users;
};
ssl = {
certificate =