From 7bf1f08d7f7c5fa449b3731241b1b1360c4c6c3e Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Mon, 4 Jul 2016 01:51:14 +0200 Subject: machines/katara: offlineimap sync user service --- machines/profpatsch/katara.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'machines') 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"; + }; + }; }; } -- cgit 1.4.1