From e89849887ac0098bb6de01e32f3e0728dd1e61ff Mon Sep 17 00:00:00 2001 From: KoenDR06 Date: Wed, 19 Nov 2025 22:12:01 +0100 Subject: [PATCH] attempt 5 --- modules/timers/flakeUpdate.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/timers/flakeUpdate.nix b/modules/timers/flakeUpdate.nix index e9eb1ae..ff8aee7 100644 --- a/modules/timers/flakeUpdate.nix +++ b/modules/timers/flakeUpdate.nix @@ -22,15 +22,17 @@ in { }; }; - systemd.services."flake-update" = { + systemd.services."flake-update" = let + git = "${pkgs.git}/bin/git"; + in { script = '' #!/run/current-system/sw/bin/zsh cd /home/horseman/nix-config - git pull + ${git} pull sudo nix flake update rebuild .#${config.networking.hostName} - git commit flake.lock -m "Update flake" - git push + ${git} commit flake.lock -m "Update flake" + ${git} push ''; serviceConfig = { Type = "oneshot";