diff options
Diffstat (limited to 'nixpkgs/nixos/modules/config/malloc.nix')
-rw-r--r-- | nixpkgs/nixos/modules/config/malloc.nix | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/nixpkgs/nixos/modules/config/malloc.nix b/nixpkgs/nixos/modules/config/malloc.nix index dfa86a44a326..65130454735c 100644 --- a/nixpkgs/nixos/modules/config/malloc.nix +++ b/nixpkgs/nixos/modules/config/malloc.nix @@ -79,19 +79,13 @@ in and/or service failure. </para> </warning> - - <note> - <para> - Changing this option does not affect the current session. - </para> - </note> ''; }; }; config = mkIf (cfg.provider != "libc") { - environment.variables.LD_PRELOAD = providerLibPath; - systemd.extraConfig = "DefaultEnvironment=\"LD_PRELOAD=${providerLibPath}\""; - systemd.user.extraConfig = "DefaultEnvironment=\"LD_PRELOAD=${providerLibPath}\""; + environment.etc."ld-nix.so.preload".text = '' + ${providerLibPath} + ''; }; } |