summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2023-06-22 17:28:44 +0300
committerArtturin <Artturin@artturin.com>2023-06-22 17:28:44 +0300
commited55524562e14131250b8362f47ccfe2d6e5a328 (patch)
tree0d89ff8b003847e126572105e6fc99fd31247c47 /nixos
parentd84d9648d33d0956012c19daab9dadf04b7d7b93 (diff)
downloadnixpkgs-ed55524562e14131250b8362f47ccfe2d6e5a328.tar
nixpkgs-ed55524562e14131250b8362f47ccfe2d6e5a328.tar.gz
nixpkgs-ed55524562e14131250b8362f47ccfe2d6e5a328.tar.bz2
nixpkgs-ed55524562e14131250b8362f47ccfe2d6e5a328.tar.lz
nixpkgs-ed55524562e14131250b8362f47ccfe2d6e5a328.tar.xz
nixpkgs-ed55524562e14131250b8362f47ccfe2d6e5a328.tar.zst
nixpkgs-ed55524562e14131250b8362f47ccfe2d6e5a328.zip
nixos/malloc: add back maybe unnecessary line
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/config/malloc.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/config/malloc.nix b/nixos/modules/config/malloc.nix
index 043f78c8214..3d70e091983 100644
--- a/nixos/modules/config/malloc.nix
+++ b/nixos/modules/config/malloc.nix
@@ -97,6 +97,7 @@ in
   };
 
   config = mkIf (cfg.provider != "libc") {
+    boot.kernel.sysctl."vm.max_map_count" = mkIf (cfg.provider == "graphene-hardened") (mkDefault 1048576); # TODO: Default vm.max_map_count has been increased system-wide
     environment.etc."ld-nix.so.preload".text = ''
       ${providerLibPath}
     '';