Skip to content

Commit

Permalink
dgraph: use --prefix to prefix PATH
Browse files Browse the repository at this point in the history
This is more robust in case PATH is empty or otherwise weird.
  • Loading branch information
SuperSandro2000 authored Mar 1, 2023
1 parent 5d609e4 commit 86053e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/databases/dgraph.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 86053e5

Please sign in to comment.