nixos/malloc: set vm.max_map_count when using graphene-hardened

This commit is contained in:
enc0urage 2023-03-28 10:18:20 +00:00
parent 4361baa782
commit a76bd96e4b

View File

@ -97,6 +97,7 @@ in
};
config = mkIf (cfg.provider != "libc") {
boot.kernel.sysctl."vm.max_map_count" = mkIf (cfg.provider == "graphene-hardened") (mkDefault 1048576);
environment.etc."ld-nix.so.preload".text = ''
${providerLibPath}
'';