Change domain to fqdn and extraDomains to domains

This commit is contained in:
John Boehr 2017-11-11 09:44:45 +00:00 committed by John Boehr
parent a745abaa8e
commit 16fb41de01
11 changed files with 51 additions and 78 deletions

View file

@ -26,26 +26,17 @@ in
options.mailserver = {
enable = mkEnableOption "nixos-mailserver";
domain = mkOption {
fqdn = mkOption {
type = types.str;
example = "[ example.com ]";
description = "The primary domain that this mail server serves.";
description = "The fully qualified domain name of the mail server.";
};
extraDomains = mkOption {
domains = mkOption {
type = types.listOf types.str;
example = "[ example.com ]";
default = [];
description = "Extra domains that this mail server serves.";
};
hostPrefix = mkOption {
type = types.str;
default = "mail";
description = ''
The prefix of the FQDN of the server. In this example the FQDN of the server
is given by 'mail.example.com'
'';
description = "The domains that this mail server serves.";
};
loginAccounts = mkOption {