treewide: remove redundant parenthesis in nix code
This commit is contained in:
parent
5f592b5960
commit
c7497cd5f6
5 changed files with 20 additions and 20 deletions
|
@ -70,17 +70,17 @@ let
|
|||
in {
|
||||
config = lib.mkIf enable {
|
||||
# assert that all accounts provide a password
|
||||
assertions = (map (acct: {
|
||||
assertion = (acct.hashedPassword != null || acct.hashedPasswordFile != null);
|
||||
assertions = map (acct: {
|
||||
assertion = acct.hashedPassword != null || acct.hashedPasswordFile != null;
|
||||
message = "${acct.name} must provide either a hashed password or a password hash file";
|
||||
}) (lib.attrValues loginAccounts));
|
||||
}) (lib.attrValues loginAccounts);
|
||||
|
||||
# warn for accounts that specify both password and file
|
||||
warnings = (map
|
||||
warnings = map
|
||||
(acct: "${acct.name} specifies both a password hash and hash file; hash file will be used")
|
||||
(lib.filter
|
||||
(acct: (acct.hashedPassword != null && acct.hashedPasswordFile != null))
|
||||
(lib.attrValues loginAccounts)));
|
||||
(lib.attrValues loginAccounts));
|
||||
|
||||
# set the vmail gid to a specific value
|
||||
users.groups = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue