From 1e5ceb6c730fab1fdb7542284580cb48204cd681 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 29 Nov 2024 17:06:07 +0100 Subject: [PATCH] feat(systemd): add git to nixos-upgrade service path Include git in the `PATH` for the `nixos-upgrade` systemd service. This change ensures that the service can execute git commands during its operations. The path addition resolves issues related to unavailable git commands. --- systems/x86_64-linux/mx/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/systems/x86_64-linux/mx/default.nix b/systems/x86_64-linux/mx/default.nix index 9d68b5f..a5ee29d 100644 --- a/systems/x86_64-linux/mx/default.nix +++ b/systems/x86_64-linux/mx/default.nix @@ -42,6 +42,7 @@ }; systemd.services.nixos-upgrade = { + path = [ pkgs.git ]; preStart = '' cd /root git fetch origin