diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2023-03-01 13:55:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-01 13:55:30 +0100 |
commit | 86053e5ec2c1ed023e543cf753922a989055fc1c (patch) | |
tree | 8f89db9630ed131c10a955631d6aa9416516f12d /nixos/modules/services/databases | |
parent | 5d609e47fe92a0ee3cc0f5cead172f9bafe5dee8 (diff) | |
download | nixpkgs-86053e5ec2c1ed023e543cf753922a989055fc1c.tar nixpkgs-86053e5ec2c1ed023e543cf753922a989055fc1c.tar.gz nixpkgs-86053e5ec2c1ed023e543cf753922a989055fc1c.tar.bz2 nixpkgs-86053e5ec2c1ed023e543cf753922a989055fc1c.tar.lz nixpkgs-86053e5ec2c1ed023e543cf753922a989055fc1c.tar.xz nixpkgs-86053e5ec2c1ed023e543cf753922a989055fc1c.tar.zst nixpkgs-86053e5ec2c1ed023e543cf753922a989055fc1c.zip |
dgraph: use --prefix to prefix PATH
This is more robust in case PATH is empty or otherwise weird.
Diffstat (limited to 'nixos/modules/services/databases')
-rw-r--r-- | nixos/modules/services/databases/dgraph.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/databases/dgraph.nix b/nixos/modules/services/databases/dgraph.nix index 887164fa5b9..7f005a9971a 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; |