Compare commits

..

2 commits

Author SHA1 Message Date
a8edaf5c25 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
2024-06-17 11:26:22 +00:00
f299ec50f6 fix: add nix as a runtime input to registration script
All checks were successful
/ check (pull_request) Successful in 2m15s
2024-06-17 13:25:29 +02:00

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