{ pkgs, config, lib, ... }:{ # accounts.email.maildirBasePath = "Mailsdir"; # accounts.email.accounts = { # "alexandre" = rec { # primary = true; # address = "alexandre@dri.fr"; # userName = "1847_alexandre"; # flavor = "plain"; # folders = { # inbox = "INBOX"; # trash = "Junk"; # }; # imap = { # host = "imap.dri.fr"; # tls.enable = false; # }; # smtp = { # host = "smtp.dri.fr"; # port = 587; # tls.enable = false; # }; # passwordCommand = "pass email/alexandre"; # mbsync.enable = true; # mbsync.create = true; # msmtp.enable = true; # msmtp.extraConfig = '' # auth plain # ''; # }; # }; programs.msmtp.enable = true; xdg.configFile = { "msmtp/config".source= ./configs/msmtp_config; }; }