From dbbb062d479e938e662ba27f0edcebbad6518fe7 Mon Sep 17 00:00:00 2001 From: Bruno Inec Date: Fri, 20 Jan 2023 14:39:35 +0100 Subject: [PATCH] Apply suggestion Co-authored-by: Aaron Andersen --- nixos/modules/services/mail/goeland.nix | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/nixos/modules/services/mail/goeland.nix b/nixos/modules/services/mail/goeland.nix index 949ecfe91a4e..13092a65ed90 100644 --- a/nixos/modules/services/mail/goeland.nix +++ b/nixos/modules/services/mail/goeland.nix @@ -61,16 +61,13 @@ in }; 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 ];