add gamemode configuration and cleanup the gaming config a bit

This commit is contained in:
Seaswimmer 2024-12-23 11:28:09 -05:00
parent c85237f4b2
commit 7827a866b9
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087
2 changed files with 26 additions and 2 deletions

View file

@ -111,6 +111,7 @@
"networkmanager"
"wheel"
"docker"
"gamemode"
];
openssh = {
authorizedKeys.keys = [

View file

@ -2,11 +2,35 @@
{
programs.steam = {
enable = true;
protontricks.enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
};
programs.gamemode = {
enable = true;
enableRenice = true;
settings = {
general = {
renice = 10;
inhibit_screensaver = 1;
};
filter = {
# whitelist = ''
# RiseOfTheTombRaider
# '';
# blacklist = ''
# HalfLife3
# glxgears
# '';
};
custom = {
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
};
};
};
environment.systemPackages = with pkgs; [
gamemode
(prismlauncher.override {
jdks = with pkgs; [
jdk8
@ -17,7 +41,6 @@
lunar-client
heroic
protonup-qt
protontricks
winetricks
celeste64
];