diff --git a/modules/services/imapnotify.nix b/modules/services/imapnotify.nix index 9c77cbd2..fbb0713e 100644 --- a/modules/services/imapnotify.nix +++ b/modules/services/imapnotify.nix @@ -25,6 +25,8 @@ let Service = { ExecStart = "${pkgs.imapnotify}/bin/imapnotify -c ${genAccountConfig account}"; + } // optionalAttrs account.notmuch.enable { + Environment = "NOTMUCH_CONFIG=${config.xdg.configHome}/notmuch/notmuchrc"; }; Install = {