about summary refs log tree commit diff
path: root/machines/profpatsch
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2016-07-04 01:51:14 +0200
committerProfpatsch <mail@profpatsch.de>2016-07-04 01:51:14 +0200
commit7bf1f08d7f7c5fa449b3731241b1b1360c4c6c3e (patch)
treea1873799739b2450c9dda52c44160b071dca4c45 /machines/profpatsch
parent31c0dc0685b59e12ce904eb984c974036488a421 (diff)
machines/katara: offlineimap sync user service
Diffstat (limited to 'machines/profpatsch')
-rw-r--r--machines/profpatsch/katara.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/machines/profpatsch/katara.nix b/machines/profpatsch/katara.nix
index 8a9a58ef..6bb32cf6 100644
--- a/machines/profpatsch/katara.nix
+++ b/machines/profpatsch/katara.nix
@@ -315,5 +315,20 @@ in {
     # fix for emacs ssh
     programs.bash.promptInit = "PS1=\"# \"";
 
+    ################
+    # User services
+    systemd.user = {
+      services.offlineimap = {
+        description = "offlineimap sync";
+        # NixOS doesn't support "Also" so we bring it in manually
+        wantedBy = [ "network.target" ];
+        serviceConfig = {
+          Type = "simple";
+          ExecStart = "${lib.getBin myPkgs.offlineimap}/bin/offlineimap";
+        };
+        # every 15 minutes
+        startAt = "*:0/15";
+      };
+    };
   };
 }