From 524ea442eb1b7ea73db7b054ce26e26df34aa9ff Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Mon, 29 Aug 2016 01:53:35 +0200 Subject: machines/katara: nixpkgs offlineimap user service --- machines/profpatsch/katara.nix | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'machines/profpatsch') 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 = { + # }; }; } -- cgit 1.4.1