diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-06-06T18·42+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2018-06-06T18·42+0200 |
commit | 8460fd5ec50b45a4282271d77d8af5b384949057 (patch) | |
tree | b3c12b7876b08682d977cfc49f9167e6a47e0ddc /mail.nix | |
parent | 9b5be54563ed54a5f2957d1d38530e0c4b992c2f (diff) |
fix(mail): Move wantedBy setting to timer unit
It's not the (oneshot) service, it's the timer that needs to be "enableable".
Diffstat (limited to '')
-rw-r--r-- | mail.nix | 3 |
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}"; |