fork/home-manager
git clone https://git.julia.blue/fork/home-manager
75790441
master
1{ config , lib , ...} : 2 3with lib ; 4 5{ 6options . astroid = { 7enable = mkEnableOption "Astroid" ; 8 9sendMailCommand = mkOption { 10type = types . str ; 11description = '' 12Command to send a mail. If msmtp is enabled for the account, 13then this is set to 14{command}`msmtpq --read-envelope-from --read-recipients`. 15'' ; 16}; 17 18extraConfig = mkOption { 19type = types . attrsOf types . anything ; 20default = { }; 21example = { select_query = "" ; }; 22description = '' 23Extra settings to add to this astroid account configuration. 24'' ; 25}; 26}; 27 28config = mkIf config . notmuch . enable { 29astroid . sendMailCommand = mkIf config . msmtp . enable 30( mkOptionDefault "msmtpq --read-envelope-from --read-recipients" ); 31}; 32}