fix: add nix as a runtime input to registration script
All checks were successful
/ check (pull_request) Successful in 2m15s

This commit is contained in:
buffet 2024-06-17 13:25:29 +02:00
parent 59b281f984
commit f299ec50f6

View file

@ -41,10 +41,16 @@
systemd = { systemd = {
services.register-thing = { services.register-thing = {
serviceConfig = { serviceConfig = let
script = pkgs.writeShellApplication {
name = "run-thing";
runtimeInputs = with pkgs; [nix];
text = "/home/maintainer/register-thing/thing";
};
in {
Type = "oneshot"; Type = "oneshot";
User = "maintainer"; User = "maintainer";
ExecStart = "/home/maintainer/register-thing/thing"; ExecStart = "${script}/bin/run-thing";
}; };
}; };