feat(gs/home): Set up lieer for work email
Change-Id: I49d6c8450b87cc876e93cba150327b5612eeebc3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2801 Reviewed-by: glittershark <grfn@gws.fyi> Tested-by: BuildkiteCI
This commit is contained in:
parent
e908ccdbbb
commit
ed7240ade5
1 changed files with 14 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
{ lib, pkgs, config, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
|
@ -18,6 +18,12 @@ let
|
|||
aliases = [ "grfn@gws.fyi" ];
|
||||
passEntry = "root-gws-msmtp";
|
||||
};
|
||||
|
||||
work = {
|
||||
address = "griffin@readyset.io";
|
||||
passEntry = "readyset/msmtp";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
in {
|
||||
|
@ -37,10 +43,13 @@ in {
|
|||
|
||||
systemd.user.services = mapAttrs' (name: account: {
|
||||
name = escapeUnitName "lieer-${name}";
|
||||
value.Service.ExecStart = mkForce "${pkgs.writeShellScript "sync-${name}" ''
|
||||
${pkgs.gmailieer}/bin/gmi sync
|
||||
''}";
|
||||
# ${pkgs.notifymuch}/bin/notifymuch
|
||||
value.Service = {
|
||||
ExecStart = mkForce "${pkgs.writeShellScript "sync-${name}" ''
|
||||
${pkgs.gmailieer}/bin/gmi sync --path ~/mail/${name}
|
||||
''}";
|
||||
Environment = "NOTMUCH_CONFIG=${config.home.sessionVariables.NOTMUCH_CONFIG}";
|
||||
};
|
||||
|
||||
}) accounts;
|
||||
|
||||
# xdg.configFile."notifymuch/notifymuch.cfg".text = generators.toINI {} {
|
||||
|
|
Loading…
Reference in a new issue