diff --git a/modules/periodic.nix b/modules/periodic.nix index 1c7cc88..5ee3bf9 100644 --- a/modules/periodic.nix +++ b/modules/periodic.nix @@ -88,7 +88,10 @@ in { systemd.user.services.zion-push = { description = "Push zion changes to git"; path = with pkgs; [ git ]; - script = "${pkgs.git}/bin/git -C /home/coolneng/system push"; + script = '' + ${pkgs.git}/bin/git -C /home/coolneng/system pull + ${pkgs.git}/bin/git -C /home/coolneng/system push + ''; serviceConfig.Type = "oneshot"; startAt = "07:00:00"; after = [ "network-online.target" ];