treewide: remove redundant parenthesis in nix code

This commit is contained in:
Martin Weinelt 2025-06-15 03:28:48 +02:00
parent 5f592b5960
commit c7497cd5f6
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
5 changed files with 20 additions and 20 deletions

View file

@ -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 = {