diff --git a/mail.nix b/mail.nix index 7fb70f196..8e45f5af7 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}";