Skip to content

Commit

Permalink
lieer-service: add path to notmuch config (nix-community#1704)
Browse files Browse the repository at this point in the history
This change makes the services created via the lieer module aware of the notmuch config created by the home-mangager notmuch module (which is stored in a non-standard location).

Without this change all the lieer services created by the lieer module failed for me, as they were unable to find the notmuch config.
  • Loading branch information
xwvvvvwx authored and chisui committed May 31, 2021
1 parent b22c736 commit 0ab292d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/services/lieer.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ let
Type = "oneshot";
ExecStart = "${pkgs.gmailieer}/bin/gmi sync";
WorkingDirectory = account.maildir.absPath;
Environment =
"NOTMUCH_CONFIG=${config.xdg.configHome}/notmuch/notmuchrc";
};
};
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[Service]
Environment=NOTMUCH_CONFIG=/home/hm-user/.config/notmuch/notmuchrc
ExecStart=@lieer@/bin/gmi sync
Type=oneshot
WorkingDirectory=/home/hm-user/Mail/[email protected]
Expand Down

0 comments on commit 0ab292d

Please sign in to comment.