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 <mail@tazj.in>
This commit is contained in:
Vincent Ambo 2020-06-11 23:47:58 +01:00 committed by tazjin
parent a342bdb80b
commit 80d324b53b

View file

@ -167,6 +167,26 @@ in depot.lib.fix(self: {
RuntimeDirectorySize=16G 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 = environment.systemPackages =
# programs from the depot # programs from the depot
(with depot; [ (with depot; [