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.
This commit is contained in:
Harald Hoyer 2024-11-29 17:06:07 +01:00
parent cd99b128d4
commit 1e5ceb6c73

View file

@ -42,6 +42,7 @@
};
systemd.services.nixos-upgrade = {
path = [ pkgs.git ];
preStart = ''
cd /root
git fetch origin