We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d016f03 commit 5676121Copy full SHA for 5676121
nix/misc.nix
@@ -33,7 +33,7 @@ in
33
} --disable-optimization --repl-options=-fobject-code --repl-options=-fno-break-on-exception --repl-options=-fno-break-on-error --repl-options=-v1 --repl-options=-ferror-spans --repl-options=-j -fghcid")
34
'';
35
};
36
- mkService = srv: exe: {
+ mkService = srv: usr: exe: {
37
lib,
38
pkgs,
39
config,
@@ -57,7 +57,10 @@ in
57
wants = ["network.target"];
58
wantedBy = ["default.target"];
59
script = "PATH=$PATH:${pkgs.busybox}/bin ${exe}";
60
- serviceConfig.Restart = "on-failure";
+ serviceConfig = {
61
+ User = usr;
62
+ Restart = "on-failure";
63
+ };
64
65
66
0 commit comments