Set up IMAP IDLE fo disroot

This commit is contained in:
coolneng 2022-04-12 00:33:58 +02:00
parent 91512c2b50
commit 7ff713bac1
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 16 additions and 0 deletions

View File

@ -82,6 +82,22 @@ in {
after = [ "network.target" ]; after = [ "network.target" ];
}; };
systemd.user.services.goimapnotify-disroot = {
description = "Sync disroot mail using IMAP IDLE";
wantedBy = [ "default.target" ];
path = [ goimapnotify pass-wayland isync-oauth2 notmuch ];
script = ''
${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/disroot.conf
'';
serviceConfig = {
ExecStartPre = "/home/coolneng/.local/share/scripts/mail-sync disroot";
Type = "simple";
Restart = "always";
RestartSec = 20;
};
after = [ "network.target" ];
};
# Garbage collect git repositories on a monthly basis # Garbage collect git repositories on a monthly basis
systemd.user.services.git-gc = { systemd.user.services.git-gc = {
description = "Garbage collect git repositories"; description = "Garbage collect git repositories";