diff options
author | Vincent Ambo <mail@tazj.in> | 2020-06-11T22·47+0100 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2020-06-11T23·18+0000 |
commit | 80d324b53b6c6c4b624ba92dd9a0f4a61b108ae5 (patch) | |
tree | d7b188499252820ccf8166acbc10ef5d56bcd19d /ops/nixos | |
parent | a342bdb80bc4f8550f460795c6151fe5e4e42567 (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')
-rw-r--r-- | ops/nixos/frog/default.nix | 20 |
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; [ |