diff --git a/nix/modules/hive-c0re.nix b/nix/modules/hive-c0re.nix index ec9223c..ba77825 100644 --- a/nix/modules/hive-c0re.nix +++ b/nix/modules/hive-c0re.nix @@ -29,6 +29,8 @@ in systemd.services.hive-c0re = { description = "hyperhive coordinator daemon"; wantedBy = [ "multi-user.target" ]; + # `nixos-container` lives in the system path; make it reachable from the unit. + path = [ "/run/current-system/sw" ]; serviceConfig = { ExecStart = "${cfg.package}/bin/hive-c0re --socket /run/hyperhive/host.sock serve --agent-flake ${cfg.agentFlake}"; Restart = "on-failure";