add warning if not using password_file

This commit is contained in:
Bruno Inec 2023-01-20 00:38:52 +01:00
parent 5edf9bd76f
commit edb6b10966
No known key found for this signature in database

View File

@ -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 ];