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};