module: add /run/current-system/sw to service path for nixos-container

This commit is contained in:
müde 2026-05-14 21:24:37 +02:00
parent e541f2ac70
commit 11e999ca93

View file

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