msmtp: use XDG config directory

(cherry picked from commit a3462daeb1)
This commit is contained in:
Olli Helenius 2019-02-10 18:53:33 +02:00 committed by Robert Helgesson
parent 45057f353c
commit cf5b16b45f
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -66,7 +66,7 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = [ pkgs.msmtp ]; home.packages = [ pkgs.msmtp ];
home.file.".msmtprc".text = configFile msmtpAccounts; xdg.configFile."msmtp/config".text = configFile msmtpAccounts;
home.sessionVariables = { home.sessionVariables = {
MSMTP_QUEUE = "${config.xdg.dataHome}/msmtp/queue"; MSMTP_QUEUE = "${config.xdg.dataHome}/msmtp/queue";