Enable mu indexer for mail
This commit is contained in:
parent
02aafdebb7
commit
bbe11687c0
2 changed files with 15 additions and 6 deletions
|
@ -28,7 +28,7 @@ let
|
||||||
enable = true;
|
enable = true;
|
||||||
boxes = [ "INBOX" ];
|
boxes = [ "INBOX" ];
|
||||||
onNotify = "${pkgs.isync}/bin/mbsync ${name}:INBOX";
|
onNotify = "${pkgs.isync}/bin/mbsync ${name}:INBOX";
|
||||||
onNotifyPost = "${notifyScript name}";
|
onNotifyPost = "${pkgs.mu}/bin/mu index && ${notifyScript name}";
|
||||||
};
|
};
|
||||||
mbsync = {
|
mbsync = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -39,6 +39,7 @@ let
|
||||||
extraConfig.account.AuthMechs = "LOGIN";
|
extraConfig.account.AuthMechs = "LOGIN";
|
||||||
};
|
};
|
||||||
msmtp.enable = true;
|
msmtp.enable = true;
|
||||||
|
mu.enable = true;
|
||||||
neomutt = {
|
neomutt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
sendMailCommand = "msmtpq --read-envelope-from --read-recipients --account ${name}";
|
sendMailCommand = "msmtpq --read-envelope-from --read-recipients --account ${name}";
|
||||||
|
@ -80,6 +81,7 @@ in
|
||||||
{
|
{
|
||||||
chvp.zfs.homeLinks = [
|
chvp.zfs.homeLinks = [
|
||||||
{ path = "mail"; type = "data"; }
|
{ path = "mail"; type = "data"; }
|
||||||
|
{ path = ".cache/mu"; type = "cache"; }
|
||||||
{ path = ".local/share/contacts"; type = "cache"; }
|
{ path = ".local/share/contacts"; type = "cache"; }
|
||||||
{ path = ".local/share/calendars"; type = "cache"; }
|
{ path = ".local/share/calendars"; type = "cache"; }
|
||||||
{ path = ".local/share/vdirsyncer"; type = "cache"; }
|
{ path = ".local/share/vdirsyncer"; type = "cache"; }
|
||||||
|
@ -282,6 +284,7 @@ in
|
||||||
programs = {
|
programs = {
|
||||||
mbsync.enable = true;
|
mbsync.enable = true;
|
||||||
msmtp.enable = true;
|
msmtp.enable = true;
|
||||||
|
mu.enable = true;
|
||||||
neomutt = {
|
neomutt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
sidebar = {
|
sidebar = {
|
||||||
|
@ -331,7 +334,10 @@ in
|
||||||
After = "network-online.target";
|
After = "network-online.target";
|
||||||
Wants = "network-online.target";
|
Wants = "network-online.target";
|
||||||
};
|
};
|
||||||
Service = { ExecStart = "${pkgs.isync}/bin/mbsync -a"; };
|
Service = {
|
||||||
|
Type = "oneshot";
|
||||||
|
ExecStart = [ "${pkgs.isync}/bin/mbsync -a" "${pkgs.mu}/bin/mu index" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
vdirsyncer = {
|
vdirsyncer = {
|
||||||
Unit = {
|
Unit = {
|
||||||
|
@ -339,7 +345,10 @@ in
|
||||||
After = "network-online.target";
|
After = "network-online.target";
|
||||||
Wants = "network-online.target";
|
Wants = "network-online.target";
|
||||||
};
|
};
|
||||||
Service = { ExecStart = "${pkgs.vdirsyncer}/bin/vdirsyncer sync"; };
|
Service = {
|
||||||
|
Type = "oneshot";
|
||||||
|
ExecStart = "${pkgs.vdirsyncer}/bin/vdirsyncer sync";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
timers = {
|
timers = {
|
||||||
|
|
6
flake.lock
generated
6
flake.lock
generated
|
@ -54,11 +54,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1616244939,
|
"lastModified": 1616250371,
|
||||||
"narHash": "sha256-fNadCs2M6/UP41OWxYJ8KxihBoOlqkvyAQ+NG5VbEBA=",
|
"narHash": "sha256-bG3/Dt3f/x8qUZ6djnfUVG8erVzwA9I4pxrtzmCizoI=",
|
||||||
"owner": "chvp",
|
"owner": "chvp",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "a1a03554af1186669a645609e25a9476f267280b",
|
"rev": "e132ddfecfeba08f3b09b72064ded55b9fceb45a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue