feat(gaming): add sysctls for starcitizen

This commit is contained in:
oddlama 2023-10-23 00:56:01 +02:00
parent 753457e6d6
commit 3e6bb8da31
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -8,6 +8,7 @@
}: let
inherit
(lib)
mkIf
mkOption
types
optionalAttrs
@ -31,6 +32,12 @@ in
];
config = {
# For Star Citizen. See https://github.com/starcitizen-lug/knowledge-base/wiki for more info.
boot.kernel.sysctl = mkIf config.graphical.gaming.enable {
"vm.max_map_count" = 16777216;
"fs.file-max" = 524288;
};
# Needed for gtk
programs.dconf.enable = true;
# Required for gnome3 pinentry