fix: use lib.mkForce on hive-ci runner PATH to resolve conflicting definition

This commit is contained in:
atlas 2026-06-03 21:32:47 +02:00 committed by mara
commit 4f80253101

View file

@ -282,8 +282,12 @@ in
# execution environment. The gitea-actions-runner host scheme
# spawns job processes with the service's environment; without
# this PATH override, `nix` and `git` aren't visible to steps.
# mkForce is required: the nixpkgs gitea-actions-runner module
# also sets PATH in the service environment, so without an
# explicit priority the evaluator raises a conflicting
# definition error.
systemd.services."gitea-runner-hive".environment.PATH =
"/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/usr/bin:/bin";
lib.mkForce "/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/usr/bin:/bin";
};
};
};