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:
parent
9b5be54563
commit
8460fd5ec5
1 changed files with 2 additions and 1 deletions
3
mail.nix
3
mail.nix
|
@ -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}";
|
||||||
|
|
Loading…
Reference in a new issue