From b0f42bce298fe2e1146d83ec55bcf4a5b7b8ae43 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 29 Nov 2024 17:07:52 +0100 Subject: [PATCH] fix(systemd): correct path for nixos-upgrade service Change the working directory from `/root` to `/root/nixcfg` in the `nixos-upgrade` systemd service to ensure the correct configuration repository is used. This update prevents potential errors due to fetching and resetting in the wrong directory. --- systems/x86_64-linux/mx/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systems/x86_64-linux/mx/default.nix b/systems/x86_64-linux/mx/default.nix index a5ee29d..2541769 100644 --- a/systems/x86_64-linux/mx/default.nix +++ b/systems/x86_64-linux/mx/default.nix @@ -44,7 +44,7 @@ systemd.services.nixos-upgrade = { path = [ pkgs.git ]; preStart = '' - cd /root + cd /root/nixcfg git fetch origin git reset --hard origin/HEAD '';