mirror of
https://github.com/kmein/niveum
synced 2026-03-19 03:21:10 +01:00
todoist, gdrive: depend on network-online
This commit is contained in:
@@ -16,7 +16,7 @@ in
|
|||||||
|
|
||||||
systemd.services.google-drive = {
|
systemd.services.google-drive = {
|
||||||
description = "Google Drive synchronisation service";
|
description = "Google Drive synchronisation service";
|
||||||
wantedBy = [ "network-online.target" ];
|
after = [ "network-online.target" ];
|
||||||
script = ''
|
script = ''
|
||||||
${pkgs.grive2}/bin/grive -p ${cfg.directory}
|
${pkgs.grive2}/bin/grive -p ${cfg.directory}
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ in {
|
|||||||
|
|
||||||
systemd.user.services.todoist-sync = {
|
systemd.user.services.todoist-sync = {
|
||||||
enable = cfg.enable;
|
enable = cfg.enable;
|
||||||
wantedBy = [ "network-online.target" ];
|
after = [ "network-online.target" ];
|
||||||
startAt = "*:0/5";
|
startAt = "*:0/5";
|
||||||
script = ''${todoist}/bin/todoist sync'';
|
script = ''${todoist}/bin/todoist sync'';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user