Compare commits
No commits in common. "a8edaf5c257567249bbaa2f0366e4fdd8f9d35eb" and "ea97703ced0bf2566d4feaadfc24c6d44de74d35" have entirely different histories.
a8edaf5c25
...
ea97703ced
1 changed files with 2 additions and 8 deletions
|
@ -41,16 +41,10 @@
|
|||
|
||||
systemd = {
|
||||
services.register-thing = {
|
||||
serviceConfig = let
|
||||
script = pkgs.writeShellApplication {
|
||||
name = "run-thing";
|
||||
runtimeInputs = with pkgs; [nix];
|
||||
text = "/home/maintainer/register-thing/thing";
|
||||
};
|
||||
in {
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "maintainer";
|
||||
ExecStart = "${script}/bin/run-thing";
|
||||
ExecStart = "/home/maintainer/register-thing/thing";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue