From 5437b17b8ec41dbac81644744454836cae1ef0bf Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Mon, 20 Sep 2021 19:10:28 +0200 Subject: [PATCH] nixos/malloc: add mimalloc --- nixos/modules/config/malloc.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nixos/modules/config/malloc.nix b/nixos/modules/config/malloc.nix index fc35993b5a81..f2e28a167ef2 100644 --- a/nixos/modules/config/malloc.nix +++ b/nixos/modules/config/malloc.nix @@ -30,6 +30,15 @@ let vulnerabilities, while maintaining good performance. ''; }; + + mimalloc = { + libPath = "${pkgs.mimalloc}/lib/libmimalloc.so"; + description = '' + A compact and fast general purpose allocator, which may + optionally be built with mitigations against various heap + vulnerabilities. + ''; + }; }; providerConf = providers.${cfg.provider};