Merge pull request #62238 from delroth/hardened-alloc-systemwide

nixos/malloc: apply allocator settings to systemd units
This commit is contained in:
Joachim F
2019-05-30 08:59:54 +00:00
committed by GitHub

View File

@@ -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}\"";
};
}