add gamemode configuration and cleanup the gaming config a bit
This commit is contained in:
parent
c85237f4b2
commit
7827a866b9
2 changed files with 26 additions and 2 deletions
|
@ -111,6 +111,7 @@
|
|||
"networkmanager"
|
||||
"wheel"
|
||||
"docker"
|
||||
"gamemode"
|
||||
];
|
||||
openssh = {
|
||||
authorizedKeys.keys = [
|
||||
|
|
|
@ -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
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue