diff options
Diffstat (limited to 'nixos/modules/config/malloc.nix')
-rw-r--r-- | nixos/modules/config/malloc.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/config/malloc.nix b/nixos/modules/config/malloc.nix index bc51b9fc573a8..dfa86a44a3260 100644 --- a/nixos/modules/config/malloc.nix +++ b/nixos/modules/config/malloc.nix @@ -91,5 +91,7 @@ in config = mkIf (cfg.provider != "libc") { environment.variables.LD_PRELOAD = providerLibPath; + systemd.extraConfig = "DefaultEnvironment=\"LD_PRELOAD=${providerLibPath}\""; + systemd.user.extraConfig = "DefaultEnvironment=\"LD_PRELOAD=${providerLibPath}\""; }; } |