From 877bf1fef904eee2c638105daf6f3a024c567850 Mon Sep 17 00:00:00 2001 From: coolneng Date: Fri, 4 Feb 2022 10:00:04 +0100 Subject: [PATCH] Replace isync with isync-oauth2 in goimapnotify --- modules/periodic.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/periodic.nix b/modules/periodic.nix index 3413b72..de103a8 100644 --- a/modules/periodic.nix +++ b/modules/periodic.nix @@ -5,6 +5,8 @@ with pkgs; let emacs-vterm = ((emacsPackagesNgGen emacsPgtkGcc).emacsWithPackages (epkgs: [ epkgs.vterm ])); + isync-oauth2 = isync.overrideAttrs + (div: rec { buildInputs = [ openssl patched-cyrus-sasl-oauth2 zlib ]; }); in { # Upgrade Doom Emacs daily @@ -51,7 +53,7 @@ in { systemd.user.services.goimapnotify-ugent = { description = "Sync UGent mail using IMAP IDLE"; wantedBy = [ "default.target" ]; - path = [ goimapnotify pass-wayland isync notmuch python39 gnupg ]; + path = [ goimapnotify pass-wayland isync-oauth2 notmuch python39 gnupg ]; script = '' ${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/ugent.conf ''; @@ -66,7 +68,7 @@ in { systemd.user.services.goimapnotify-gmail = { description = "Sync gmail mail using IMAP IDLE"; wantedBy = [ "default.target" ]; - path = [ goimapnotify pass-wayland isync notmuch ]; + path = [ goimapnotify pass-wayland isync-oauth2 notmuch ]; script = '' ${pkgs.goimapnotify}/bin/goimapnotify -conf /home/coolneng/.config/goimapnotify/gmail.conf '';