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" "networkmanager"
"wheel" "wheel"
"docker" "docker"
"gamemode"
]; ];
openssh = { openssh = {
authorizedKeys.keys = [ authorizedKeys.keys = [

View file

@ -2,11 +2,35 @@
{ {
programs.steam = { programs.steam = {
enable = true; enable = true;
protontricks.enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server 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; [ environment.systemPackages = with pkgs; [
gamemode
(prismlauncher.override { (prismlauncher.override {
jdks = with pkgs; [ jdks = with pkgs; [
jdk8 jdk8
@ -17,7 +41,6 @@
lunar-client lunar-client
heroic heroic
protonup-qt protonup-qt
protontricks
winetricks winetricks
celeste64 celeste64
]; ];