From ed7240ade52532048e08ff9be80b0fc99ea1e82c Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Thu, 1 Apr 2021 12:37:55 -0400 Subject: feat(gs/home): Set up lieer for work email Change-Id: I49d6c8450b87cc876e93cba150327b5612eeebc3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2801 Reviewed-by: glittershark Tested-by: BuildkiteCI --- users/glittershark/system/home/modules/email.nix | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/users/glittershark/system/home/modules/email.nix b/users/glittershark/system/home/modules/email.nix index 77e068f43f..cdfcbecb7c 100644 --- a/users/glittershark/system/home/modules/email.nix +++ b/users/glittershark/system/home/modules/email.nix @@ -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 {} { -- cgit 1.4.1