about summary refs log tree commit diff
diff options
context:
space:
mode:
-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 648e3549b6..93248aec93 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; [