diff options
author | Profpatsch <mail@profpatsch.de> | 2016-07-04 01:51:14 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2016-07-04 01:51:14 +0200 |
commit | 7bf1f08d7f7c5fa449b3731241b1b1360c4c6c3e (patch) | |
tree | a1873799739b2450c9dda52c44160b071dca4c45 /machines/profpatsch | |
parent | 31c0dc0685b59e12ce904eb984c974036488a421 (diff) |
machines/katara: offlineimap sync user service
Diffstat (limited to 'machines/profpatsch')
-rw-r--r-- | machines/profpatsch/katara.nix | 15 |
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"; + }; + }; }; } |