about summary refs log tree commit diff
path: root/ops/nixos/frog/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-06-11T22·47+0100
committertazjin <mail@tazj.in>2020-06-11T23·18+0000
commit80d324b53b6c6c4b624ba92dd9a0f4a61b108ae5 (patch)
treed7b188499252820ccf8166acbc10ef5d56bcd19d /ops/nixos/frog/default.nix
parenta342bdb80bc4f8550f460795c6151fe5e4e42567 (diff)
feat(nixos/frog): Enable lieer sync for mail@tazj.in r/910
Change-Id: I38a338143d57d5f49532d200910f9406fa49f535
Reviewed-on: https://cl.tvl.fyi/c/depot/+/61
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'ops/nixos/frog/default.nix')
-rw-r--r--ops/nixos/frog/default.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/ops/nixos/frog/default.nix b/ops/nixos/frog/default.nix
index 648e3549b610..93248aec936d 100644
--- a/ops/nixos/frog/default.nix
+++ b/ops/nixos/frog/default.nix
@@ -167,6 +167,26 @@ in depot.lib.fix(self: {
     RuntimeDirectorySize=16G
   '';
 
+  # Configure email setup
+  systemd.user.services.lieer-tazjin = {
+    description = "Synchronise mail@tazj.in via lieer";
+    script = "${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";
+    };
+  };
+
   environment.systemPackages =
     # programs from the depot
     (with depot; [