From 86053e5ec2c1ed023e543cf753922a989055fc1c Mon Sep 17 00:00:00 2001 From: Sandro Date: Wed, 1 Mar 2023 13:55:30 +0100 Subject: [PATCH] dgraph: use --prefix to prefix PATH This is more robust in case PATH is empty or otherwise weird. --- nixos/modules/services/databases/dgraph.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/databases/dgraph.nix b/nixos/modules/services/databases/dgraph.nix index 887164fa5b94..7f005a9971a6 100644 --- a/nixos/modules/services/databases/dgraph.nix +++ b/nixos/modules/services/databases/dgraph.nix @@ -12,7 +12,7 @@ let '' mkdir -p $out/bin makeWrapper ${cfg.package}/bin/dgraph $out/bin/dgraph \ - --set PATH '${lib.makeBinPath [ pkgs.nodejs ]}:$PATH' \ + --prefix PATH : "${lib.makeBinPath [ pkgs.nodejs ]}" \ ''; securityOptions = { NoNewPrivileges = true;