From 6c1963a6473735ba53c7def6f75e49e67a3366da Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= <dev@felschr.com>
Date: Tue, 25 Apr 2023 15:03:54 +0200
Subject: [PATCH] feat(gaming): increase vm.max_map_count further

It's now using the same default value as SteamOS.
Fedora will likely use this by default in the future as well.
---
 system/gaming.nix | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/system/gaming.nix b/system/gaming.nix
index c409a92..896e2fa 100644
--- a/system/gaming.nix
+++ b/system/gaming.nix
@@ -20,6 +20,5 @@
   hardware.xone.enable = true;
   hardware.xpadneo.enable = true;
 
-  # fix for Star Citizen
-  boot.kernel.sysctl."vm.max_map_count" = 16777216;
+  boot.kernel.sysctl."vm.max_map_count" = 2147483642;
 }