about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-06-06T18·42+0200
committerVincent Ambo <tazjin@gmail.com>2018-06-06T18·42+0200
commit8460fd5ec50b45a4282271d77d8af5b384949057 (patch)
treeb3c12b7876b08682d977cfc49f9167e6a47e0ddc
parent9b5be54563ed54a5f2957d1d38530e0c4b992c2f (diff)
fix(mail): Move wantedBy setting to timer unit
It's not the (oneshot) service, it's the timer that needs to be
"enableable".
-rw-r--r--mail.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/mail.nix b/mail.nix
index 7fb70f196c19..8e45f5af7c03 100644
--- a/mail.nix
+++ b/mail.nix
@@ -44,7 +44,6 @@ in {
   # Enable OfflineIMAP timer & service:
   systemd.user.timers.offlineimap = {
     description = "OfflineIMAP timer";
-    wantedBy    = [ "default.target" ];
 
     timerConfig = {
       Unit       = "offlineimap.service";
@@ -56,6 +55,8 @@ in {
   systemd.user.services.offlineimap = {
     description = "OfflineIMAP service";
     path = with pkgs; [ pass notmuch ];
+    wantedBy    = [ "default.target" ];
+
     serviceConfig = {
       Type            = "oneshot";
       ExecStart       = "${pkgs.offlineimap}/bin/offlineimap -u syslog -o -c ${offlineImapConfig}";