nixos-config/system/gaming.nix

26 lines
605 B
Nix
Raw Normal View History

2021-08-01 14:44:23 +02:00
{ 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'";
};
};
};
2021-08-07 22:08:00 +02:00
programs.steam.enable = true;
programs.steam.remotePlay.openFirewall = true;
programs.steam.dedicatedServer.openFirewall = true;
2022-08-25 22:24:29 +02:00
hardware.xone.enable = true;
hardware.xpadneo.enable = true;
2021-08-07 22:08:00 +02:00
# fix for Star Citizen
boot.kernel.sysctl."vm.max_map_count" = 16777216;
2021-08-01 14:44:23 +02:00
}