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
All checks were successful
/ check (push) Successful in 2m28s
Reviewed-on: #41
This commit is contained in:
commit
a8edaf5c25
1 changed files with 8 additions and 2 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue