fix: use lib.mkForce on hive-ci runner PATH to resolve conflicting definition
This commit is contained in:
parent
a604fbf197
commit
4f80253101
1 changed files with 5 additions and 1 deletions
|
|
@ -282,8 +282,12 @@ in
|
||||||
# execution environment. The gitea-actions-runner host scheme
|
# execution environment. The gitea-actions-runner host scheme
|
||||||
# spawns job processes with the service's environment; without
|
# spawns job processes with the service's environment; without
|
||||||
# this PATH override, `nix` and `git` aren't visible to steps.
|
# 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 =
|
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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue