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"
|
"networkmanager"
|
||||||
"wheel"
|
"wheel"
|
||||||
"docker"
|
"docker"
|
||||||
|
"gamemode"
|
||||||
];
|
];
|
||||||
openssh = {
|
openssh = {
|
||||||
authorizedKeys.keys = [
|
authorizedKeys.keys = [
|
||||||
|
|
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue