harness: prepend /run/wrappers/bin to service path so sudo wrapper resolves (#658 fixup)
This commit is contained in:
parent
bee338cf4f
commit
c73c8389ec
2 changed files with 20 additions and 6 deletions
|
|
@ -39,11 +39,14 @@ in
|
|||
# populates /etc/profile, which systemd services don't inherit.
|
||||
HIVE_ASSETS_DIR = "${pkgs.hyperhive-assets}/share/hyperhive";
|
||||
};
|
||||
# See note in agent-base.nix — `/run/current-system/sw` makes the
|
||||
# harness service PATH track `environment.systemPackages` so anything
|
||||
# an agent adds to its own `agent.nix` is visible without editing the
|
||||
# service definition.
|
||||
path = [ "/run/current-system/sw" ];
|
||||
# See note in agent-base.nix for the rationale on both entries —
|
||||
# `/run/wrappers/bin` so the setuid sudo shim resolves before the
|
||||
# bare nix-store binary (#658 fixup), `/run/current-system/sw`
|
||||
# so the harness PATH tracks `environment.systemPackages`.
|
||||
path = [
|
||||
"/run/wrappers/bin"
|
||||
"/run/current-system/sw"
|
||||
];
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.hyperhive}/bin/hive-m1nd serve";
|
||||
Restart = "on-failure";
|
||||
|
|
|
|||
Loading…
Reference in a new issue