Apply suggestion

Co-authored-by: Aaron Andersen <aaron@fosslib.net>

Changed files
+7 -10
nixos
modules
services
+7 -10
nixos/modules/services/mail/goeland.nix
···
};
users.groups.goeland = { };
-
warnings =
-
if hasAttr "password" cfg.settings.email
-
then [
-
''
-
It is not recommended to set the "services.goeland.settings.email.password"
-
option as it will be in cleartext in the Nix store.
-
Please use "services.goeland.settings.email.password_file" instead.
-
''
-
]
-
else [ ];
+
warnings = optionals (hasAttr "password" cfg.settings.email) [
+
''
+
It is not recommended to set the "services.goeland.settings.email.password"
+
option as it will be in cleartext in the Nix store.
+
Please use "services.goeland.settings.email.password_file" instead.
+
''
+
];
};
meta.maintainers = with maintainers; [ sweenu ];