mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
lieer-service: add path to notmuch config (#1704)
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.
This commit is contained in:
@@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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/hm@example.com
|
||||
|
||||
Reference in New Issue
Block a user