From fbcefecba6d4aeeb557a54a462fc387d5d2a8d6d Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 20 Jun 2022 22:52:06 +0200 Subject: [PATCH] Perform a git pull on the zion repository daily --- modules/periodic.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/periodic.nix b/modules/periodic.nix index af50bf4..f1f69b2 100644 --- a/modules/periodic.nix +++ b/modules/periodic.nix @@ -130,4 +130,14 @@ in { startAt = "*-*-15 14:00:00"; after = [ "network-online.target" ]; }; + + # Pull changes from zion daily + systemd.user.services.zion-pull = { + description = "Pull zion changes to git"; + path = [ git ]; + script = "${pkgs.git}/bin/git -C /home/coolneng/Projects/zion pull"; + serviceConfig.Type = "oneshot"; + startAt = "10:00:00"; + after = [ "network-online.target" ]; + }; }