about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2016-08-29 01:53:35 +0200
committerProfpatsch <mail@profpatsch.de>2016-08-29 01:55:12 +0200
commit524ea442eb1b7ea73db7b054ce26e26df34aa9ff (patch)
tree4a13cf9a8d7d1cfca335738c039214af1ecb2b6f /machines
parent9c29f49482a9812479e5d361571608536e01acd7 (diff)
machines/katara: nixpkgs offlineimap user service
Diffstat (limited to 'machines')
-rw-r--r--machines/profpatsch/katara.nix23
1 files changed, 9 insertions, 14 deletions
diff --git a/machines/profpatsch/katara.nix b/machines/profpatsch/katara.nix
index c851464d..f83cdbd7 100644
--- a/machines/profpatsch/katara.nix
+++ b/machines/profpatsch/katara.nix
@@ -139,7 +139,7 @@ in {
       ];
       mailPkgs = [
         elinks             # command line browser
-        myPkgs.offlineimap # IMAP client
+        # myPkgs.offlineimap # IMAP client
         mutt-with-sidebar  # has been sucking less since 1970
         msmtp              # SMTP client
         notmuch            # mail indexer
@@ -188,6 +188,12 @@ in {
       # drivers = [ pkgs.foomatic_filters pkgs.foomatic-db-engine ];
     };
 
+    services.offlineimap = {
+      # enable user service
+      install = true;
+      onCalendar = "*:0/15";
+    };
+
     # redshift TODO as user
     services.redshift = {
       # enable = true;
@@ -314,18 +320,7 @@ in {
 
     ################
     # 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";
-      };
-    };
+    # systemd.user = {
+    # };
   };
 }