summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--nixos/modules/services/mail/goeland.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/modules/services/mail/goeland.nix b/nixos/modules/services/mail/goeland.nix
index c407ffafcf1..949ecfe91a4 100644
--- a/nixos/modules/services/mail/goeland.nix
+++ b/nixos/modules/services/mail/goeland.nix
@@ -60,6 +60,17 @@ in
       isSystemUser = true;
     };
     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 [ ];
   };
 
   meta.maintainers = with maintainers; [ sweenu ];