about summary refs log tree commit diff
path: root/machines/profpatsch/shiki.nix
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2021-10-04 18:16:01 +0200
committerProfpatsch <mail@profpatsch.de>2021-10-26 20:44:13 +0200
commitc8045aa11f4d9a56f72955f1189dbea3f46deef7 (patch)
tree20e000b3cccbd179391c26bbb63bc99d28104d1d /machines/profpatsch/shiki.nix
parent6c53c759b156be978462c4b82d83952cc850a694 (diff)
xdg-open: add ics files to the calendar & sync to webdav
Sync the calendar every 15 minutes with a user service, and add ics
file support to xdg-open.
Diffstat (limited to 'machines/profpatsch/shiki.nix')
-rw-r--r--machines/profpatsch/shiki.nix18
1 files changed, 17 insertions, 1 deletions
diff --git a/machines/profpatsch/shiki.nix b/machines/profpatsch/shiki.nix
index 2cabac2e..939d7ea0 100644
--- a/machines/profpatsch/shiki.nix
+++ b/machines/profpatsch/shiki.nix
@@ -449,7 +449,7 @@ in {
           description = "run mbsync job every 15 minutes";
           wantedBy = [ "timers.target" ];
           timerConfig = {
-            OnStartupSec="10s";
+            OnStartupSec="30s";
             OnUnitActiveSec ="15m";
           };
         };
@@ -461,6 +461,22 @@ in {
           };
         };
 
+        services.calendar-sync = {
+          description = "syncronize private calendars";
+          serviceConfig = {
+            Restart = "no";
+            ExecStart = "${pkgs.vdirsyncer}/bin/vdirsyncer -vdebug sync";
+          };
+        };
+        timers.calendar-sync = {
+          description = "sync calendars every 15 minutes";
+          wantedBy = [ "timers.target" ];
+          timerConfig = {
+            OnStartupSec="30s";
+            OnUnitActiveSec ="15m";
+          };
+        };
+
         # I could fight against udev or I could just run this script every ten seconds
         timers.set-keyboard-speed = {
           description = "set the keyboard speed every 10 seconds in case a keyboard was plugged in";