about summary refs log tree commit diff
path: root/users/glittershark/system/home/modules/email.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/glittershark/system/home/modules/email.nix')
-rw-r--r--users/glittershark/system/home/modules/email.nix19
1 files changed, 14 insertions, 5 deletions
diff --git a/users/glittershark/system/home/modules/email.nix b/users/glittershark/system/home/modules/email.nix
index 77e068f43fbb..cdfcbecb7c00 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 {} {