Add gaming performance tuning
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
26
hosts/common/configs/user/gui/gaming/performance/default.nix
Normal file
26
hosts/common/configs/user/gui/gaming/performance/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ user, home }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
# https://bonkmaykr.xyz/content/discovery_lin.htm
|
||||
{
|
||||
boot.kernel.sysctl."vm.max_map_count" = 1048576;
|
||||
|
||||
security.pam.loginLimits = [
|
||||
{
|
||||
domain = user;
|
||||
item = "nofile";
|
||||
type = "soft";
|
||||
value = 200000;
|
||||
}
|
||||
{
|
||||
domain = user;
|
||||
item = "nofile";
|
||||
type = "hard";
|
||||
value = 200000;
|
||||
}
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user