diff options
author | Vincent Ambo <mail@tazj.in> | 2021-05-22T19·51+0200 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2021-05-22T20·58+0000 |
commit | 1fa76e77195816861a22d2e6d4e637fdca82a172 (patch) | |
tree | 0f1b4c720049e0e65f21cbbcb0c86db3d30a7682 /users | |
parent | 4a807040a2607ccaa8c992f707ff085cd3bab5ca (diff) |
feat(tverskoy): Add mail fetching timer for lieer r/2608
Change-Id: I60b09d2c81c3c69f744a12adc41fbdc43d0fb488 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3133 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'users')
-rw-r--r-- | users/tazjin/nixos/tverskoy/default.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/users/tazjin/nixos/tverskoy/default.nix b/users/tazjin/nixos/tverskoy/default.nix index 63001da17efe..f6b85b39d22f 100644 --- a/users/tazjin/nixos/tverskoy/default.nix +++ b/users/tazjin/nixos/tverskoy/default.nix @@ -267,6 +267,25 @@ in lib.fix(self: { xsecurelock ]); + systemd.user.services.lieer-tazjin = { + description = "Synchronise mail@tazj.in via lieer"; + script = "${pkgs.lieer}/bin/gmi sync"; + + serviceConfig = { + WorkingDirectory = "%h/mail/account.tazjin"; + Type = "oneshot"; + }; + }; + + systemd.user.timers.lieer-tazjin = { + wantedBy = [ "timers.target" ]; + + timerConfig = { + OnActiveSec = "1"; + OnUnitActiveSec = "180"; + }; + }; + home-manager.useGlobalPkgs = true; home-manager.users.tazjin = { config, lib, ... }: { imports = [ "${depot.third_party.impermanence}/home-manager.nix" ]; |