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: # Enable OfflineIMAP timer & service:
systemd.user.timers.offlineimap = { systemd.user.timers.offlineimap = {
description = "OfflineIMAP timer"; description = "OfflineIMAP timer";
wantedBy = [ "default.target" ];
timerConfig = { timerConfig = {
Unit = "offlineimap.service"; Unit = "offlineimap.service";
@ -56,6 +55,8 @@ in {
systemd.user.services.offlineimap = { systemd.user.services.offlineimap = {
description = "OfflineIMAP service"; description = "OfflineIMAP service";
path = with pkgs; [ pass notmuch ]; path = with pkgs; [ pass notmuch ];
wantedBy = [ "default.target" ];
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
ExecStart = "${pkgs.offlineimap}/bin/offlineimap -u syslog -o -c ${offlineImapConfig}"; ExecStart = "${pkgs.offlineimap}/bin/offlineimap -u syslog -o -c ${offlineImapConfig}";