From a422180aed9c939078f87815adef5cb1df9361db Mon Sep 17 00:00:00 2001 From: Anish L Date: Fri, 1 Jul 2022 20:00:58 +1000 Subject: [PATCH] vdirsyncer module --- profiles/sync/cal/default.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 profiles/sync/cal/default.nix diff --git a/profiles/sync/cal/default.nix b/profiles/sync/cal/default.nix new file mode 100644 index 00000000..e89e300f --- /dev/null +++ b/profiles/sync/cal/default.nix @@ -0,0 +1,21 @@ +{ pkgs, ... }: + +{ + systemd.services.vdir-sync = { + serviceConfig.Type = "oneshot"; + path = [ + pkgs.vdirsyncer + ]; + script = '' + vdirsyncer sync + ''; + serviceConfig = { + User = "anish"; + }; + }; + systemd.timers.vdir-sync = { + wantedBy = [ "timers.target" ]; + partOf = [ "vdir-sync.service" ]; + timerConfig.OnCalendar = [ "hourly" ]; + }; +}