Skip to content

Commit 5d49d4c

Browse files
committed
nixos/guix: use exec to start the payload binary
Signed-off-by: lucasew <[email protected]>
1 parent 410ae87 commit 5d49d4c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

nixos/modules/services/misc/guix/default.nix

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ in
213213
systemd.services.guix-daemon = {
214214
environment = serviceEnv;
215215
script = ''
216-
${lib.getExe' package "guix-daemon"} \
216+
exec ${lib.getExe' package "guix-daemon"} \
217217
--build-users-group=${cfg.group} \
218218
${lib.escapeShellArgs cfg.extraArgs}
219219
'';
@@ -324,7 +324,7 @@ in
324324
}
325325
'';
326326
script = ''
327-
${lib.getExe' package "guix"} publish \
327+
exec ${lib.getExe' package "guix"} publish \
328328
--user=${cfg.publish.user} --port=${builtins.toString cfg.publish.port} \
329329
${lib.escapeShellArgs cfg.publish.extraArgs}
330330
'';
@@ -380,12 +380,10 @@ in
380380
description = "Guix garbage collection";
381381
startAt = cfg.gc.dates;
382382
script = ''
383-
${lib.getExe' package "guix"} gc ${lib.escapeShellArgs cfg.gc.extraArgs}
383+
exec ${lib.getExe' package "guix"} gc ${lib.escapeShellArgs cfg.gc.extraArgs}
384384
'';
385-
386385
serviceConfig = {
387386
Type = "oneshot";
388-
389387
PrivateDevices = true;
390388
PrivateNetworks = true;
391389
ProtectControlGroups = true;

0 commit comments

Comments
 (0)