fork/home-manager
git clone https://git.julia.blue/fork/home-manager
75790441
master
1{ config , lib , ...} : 2 3with lib ; 4 5{ 6options . msmtp = { 7enable = mkOption { 8type = types . bool ; 9default = false ; 10description = '' 11Whether to enable msmtp. 12 13If enabled then it is possible to use the 14`--account` command line 15option to send a message for a given account using the 16{command}`msmtp` or {command}`msmtpq` tool. 17For example, {command}`msmtp --account=private` would 18send using the account defined in 19{option}`accounts.email.accounts.private`. If the 20`--account` option is not 21given then the primary account will be used. 22'' ; 23}; 24 25tls . fingerprint = mkOption { 26type = 27types . nullOr ( types . strMatching "([[:alnum:]]{2}:)+[[:alnum:]]{2}" ); 28default = null ; 29example = "my:SH:a2:56:ha:sh" ; 30description = '' 31Fingerprint of a trusted TLS certificate. 32The fingerprint can be obtained by executing 33{command}`msmtp --serverinfo --tls --tls-certcheck=off`. 34'' ; 35}; 36 37extraConfig = mkOption { 38type = types . attrsOf types . str ; 39default = { }; 40example = { auth = "login" ; }; 41description = '' 42Extra configuration options to add to {file}`~/.msmtprc`. 43See <https://marlam.de/msmtp/msmtprc.txt> for 44examples. 45'' ; 46}; 47}; 48}