'';
};
isVm = mkEnableOption "The host is a vm";
- users = mkOption {
- type = unspecified;
- default = pkgs: [];
- description = ''
- Sublist of users from realUsers. Function that takes pkgs as
- argument and gives an array as a result
- '';
- };
emails = mkOption {
default = [];
description = "List of e-mails that the server can be a sender of";
};
};
};
- realUsers = mkOption {
- description = ''
- Attrset of function taking pkgs as argument.
- Real users settings, should provide a subattr of users.users.<name>
- with at least: name, (hashed)Password, shell
- '';
- type = attrsOf unspecified;
- };
users = mkOption {
description = "System and regular users uid/gid";
type = attrsOf (submodule {
description = "Dovecot configuration";
type = submodule {
options = {
+ mysql = mkMysqlOptions "Dovecot" {};
ldap = mkLdapOptions "Dovecot" {
pass_attrs = mkOption { type = str; description = "Password attribute in LDAP"; };
user_attrs = mkOption { type = str; description = "User attribute mapping in LDAP"; };
};
};
};
- serverSpecific = mkOption { type = attrsOf unspecified; description = "Server specific configuration"; };
};
options.hostEnv = mkOption {
readOnly = true;