From 80d324b53b6c6c4b624ba92dd9a0f4a61b108ae5 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 11 Jun 2020 23:47:58 +0100 Subject: [PATCH] feat(nixos/frog): Enable lieer sync for mail@tazj.in Change-Id: I38a338143d57d5f49532d200910f9406fa49f535 Reviewed-on: https://cl.tvl.fyi/c/depot/+/61 Reviewed-by: tazjin --- ops/nixos/frog/default.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/ops/nixos/frog/default.nix b/ops/nixos/frog/default.nix index 648e3549b..93248aec9 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; [