programs.msmtp.accounts

NixOS option

Named accounts and their respective configurations. The special name “default” allows a default account to be defined. See msmtp(1) for the available options. Use programs.msmtp.extraConfig instead of this attribute set-based option if ordered account inheritance is needed. It is advised to use the passwordeval setting to read the password from a secret file to avoid having it written in the world-readable nix store. The password file must end with a newline (\n).

type: attribute set of (attribute set)
Default
{ }
Example
{
  default = {
    auth = true;
    host = "smtp.example";
    passwordeval = "cat /secrets/password.txt";
    user = "someone";
  };
}
declared in: nixos/modules/programs/msmtp.nixView source on NixOS/nixpkgs →