diff --git a/nixos/modules/programs/nix-ld.nix b/nixos/modules/programs/nix-ld.nix index 770cccd13b50..edfe7f1f6a3e 100644 --- a/nixos/modules/programs/nix-ld.nix +++ b/nixos/modules/programs/nix-ld.nix @@ -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"; };