fix: add nix as a runtime input to registration script #41

Merged
chef merged 1 commit from chef/fix-fix-fix-registration into main 2024-06-17 11:26:23 +00:00 AGit
Showing only changes of commit f299ec50f6 - Show all commits

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";
}; };
}; };