nixos-config/system/gaming.nix
Felix Schröter 6c1963a647
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.
2023-04-25 15:18:01 +02:00

25 lines
582 B
Nix

{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [ gamemode ];
programs.gamemode = {
enable = true;
settings = {
custom = {
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
end = "${pkgs.libnotify}/bin/notify-send 'GameMode stopped'";
};
};
};
programs.steam.enable = true;
programs.steam.remotePlay.openFirewall = true;
programs.steam.dedicatedServer.openFirewall = true;
hardware.xone.enable = true;
hardware.xpadneo.enable = true;
boot.kernel.sysctl."vm.max_map_count" = 2147483642;
}