From 11e999ca9391ef657cf9a63a9df5f6cf57dacad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?m=C3=BCde?= Date: Thu, 14 May 2026 21:24:37 +0200 Subject: [PATCH] module: add /run/current-system/sw to service path for nixos-container --- nix/modules/hive-c0re.nix | 2 ++ 1 file changed, 2 insertions(+) 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";