summary refs log tree commit diff
path: root/nixos/modules/services/mail
diff options
context:
space:
mode:
authorBruno Inec <contact@sweenu.xyz>2023-01-20 00:38:52 +0100
committerBruno Inec <contact@sweenu.xyz>2023-01-20 00:39:34 +0100
commitedb6b1096601ec5553608e7ea6874a65ae9e5381 (patch)
treed04bc4c2d26fb2f6f1da5a831e31d82106b2dd82 /nixos/modules/services/mail
parent5edf9bd76ffb0ac02bbd4d70c3c330d4267b5d78 (diff)
downloadnixpkgs-edb6b1096601ec5553608e7ea6874a65ae9e5381.tar
nixpkgs-edb6b1096601ec5553608e7ea6874a65ae9e5381.tar.gz
nixpkgs-edb6b1096601ec5553608e7ea6874a65ae9e5381.tar.bz2
nixpkgs-edb6b1096601ec5553608e7ea6874a65ae9e5381.tar.lz
nixpkgs-edb6b1096601ec5553608e7ea6874a65ae9e5381.tar.xz
nixpkgs-edb6b1096601ec5553608e7ea6874a65ae9e5381.tar.zst
nixpkgs-edb6b1096601ec5553608e7ea6874a65ae9e5381.zip
add warning if not using password_file
Diffstat (limited to 'nixos/modules/services/mail')
-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 ];