diff options
author | Martino Fontana <tinozzo123@tutanota.com> | 2023-06-21 19:23:08 +0200 |
---|---|---|
committer | Martino Fontana <tinozzo123@tutanota.com> | 2023-06-21 19:25:42 +0200 |
commit | e1a6c85c2ba53933bfe5b6a86b9031cc28e4f9e1 (patch) | |
tree | 27e31b1ce9e4a1b5a94ac0a5f317bfa3201509fd /nixos/modules/config/sysctl.nix | |
parent | 2c09e8eb8717e240ef9c5727c1cc9186db9fb309 (diff) |
nixos/sysctl: raise default vm.max_map_count to 1048576
Diffstat (limited to 'nixos/modules/config/sysctl.nix')
-rw-r--r-- | nixos/modules/config/sysctl.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/config/sysctl.nix b/nixos/modules/config/sysctl.nix index 4346c88f7688c..0bc7ab9667f9a 100644 --- a/nixos/modules/config/sysctl.nix +++ b/nixos/modules/config/sysctl.nix @@ -72,5 +72,8 @@ in # Disable YAMA by default to allow easy debugging. boot.kernel.sysctl."kernel.yama.ptrace_scope" = mkDefault 0; + # Improve compatibility with applications that allocate + # a lot of memory, like modern games + boot.kernel.sysctl."vm.max_map_count" = mkDefault 1048576; }; } |