From 0d86259eda23cb30ab1a77cf7e9df4ade2a4eaa9 Mon Sep 17 00:00:00 2001 From: coolneng Date: Fri, 18 Jun 2021 16:26:51 +0200 Subject: [PATCH] Replace imapnotify with goimapnotify --- modules/periodic.nix | 22 ++++++++++++++++++++++ modules/software.nix | 1 - 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/modules/periodic.nix b/modules/periodic.nix index 453c8c8..0efb4e7 100644 --- a/modules/periodic.nix +++ b/modules/periodic.nix @@ -41,4 +41,26 @@ startAt = "18:00:00"; }; + # Sync mail using IDLE + systemd.user.services.goimapnotify-uni = { + description = "Sync uni mail using IMAP IDLE"; + wantedBy = [ "default.target" ]; + path = with pkgs; [ goimapnotify pass-wayland isync notmuch ]; + script = '' + ${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/uni.conf + ''; + serviceConfig.Type = "simple"; + after = [ "network.target" ]; + }; + + systemd.user.services.goimapnotify-gmail = { + description = "Sync gmail mail using IMAP IDLE"; + wantedBy = [ "default.target" ]; + path = with pkgs; [ goimapnotify pass-wayland isync notmuch ]; + script = '' + ${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/gmail.conf + ''; + serviceConfig.Type = "simple"; + after = [ "network.target" ]; + }; } diff --git a/modules/software.nix b/modules/software.nix index ad28c23..8020ead 100644 --- a/modules/software.nix +++ b/modules/software.nix @@ -54,7 +54,6 @@ isync notmuch msmtp - imapnotify w3m urlscan # Media