about summary refs log tree commit diff
path: root/mail.nix
diff options
context:
space:
mode:
Diffstat (limited to 'mail.nix')
-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}";