Compare commits
2 commits
ea97703ced
...
a8edaf5c25
Author | SHA1 | Date | |
---|---|---|---|
a8edaf5c25 | |||
f299ec50f6 |
1 changed files with 8 additions and 2 deletions
|
@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue