fix(mail): Move wantedBy setting to timer unit

It's not the (oneshot) service, it's the timer that needs to be
"enableable".
This commit is contained in:
Vincent Ambo 2018-06-06 20:42:15 +02:00
parent 9b5be54563
commit 8460fd5ec5

View file

@ -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}";