mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
nixos/nix-ld: replace variable
with sessionVariables
I tried to execute the command over ssh (without login). But got an error about shared libraries. Error reproduction: ```bash ssh <user>@<host> env | grep NIX_LD_LIBRARY_PATH ``` Replacing shell variables with PAM variables solves this problem.
This commit is contained in:
parent
8d81a29e4a
commit
6c289ca719
@ -34,7 +34,7 @@ in
|
||||
|
||||
environment.pathsToLink = [ "/share/nix-ld" ];
|
||||
|
||||
environment.variables = {
|
||||
environment.sessionVariables = {
|
||||
NIX_LD = "/run/current-system/sw/share/nix-ld/lib/ld.so";
|
||||
NIX_LD_LIBRARY_PATH = "/run/current-system/sw/share/nix-ld/lib";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user