Merge pull request 'fix: add nix as a runtime input to registration script' (#41) from chef/fix-fix-fix-registration into main
All checks were successful
/ check (push) Successful in 2m28s

Reviewed-on: #41
This commit is contained in:
buffet 2024-06-17 11:26:22 +00:00
commit a8edaf5c25

View file

@ -41,10 +41,16 @@
systemd = {
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";
User = "maintainer";
ExecStart = "/home/maintainer/register-thing/thing";
ExecStart = "${script}/bin/run-thing";
};
};