From a8fd0942a550ba95959ab356d6d101b914691540 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Mon, 2 Aug 2021 21:54:32 +0200 Subject: [PATCH] gamemode: Add gamemode config --- modules/programs/gamemode/default.nix | 7 +++++++ modules/programs/gamemode/gamemode.ini | 29 ++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 modules/programs/gamemode/default.nix create mode 100644 modules/programs/gamemode/gamemode.ini diff --git a/modules/programs/gamemode/default.nix b/modules/programs/gamemode/default.nix new file mode 100644 index 0000000..1fd6fed --- /dev/null +++ b/modules/programs/gamemode/default.nix @@ -0,0 +1,7 @@ +{ ... }: + +{ + home-manager.users.alexander.xdg.configFile = { + "gamemode/gamemode.ini".source = ./gamemode.ini; + }; +} diff --git a/modules/programs/gamemode/gamemode.ini b/modules/programs/gamemode/gamemode.ini new file mode 100644 index 0000000..589045a --- /dev/null +++ b/modules/programs/gamemode/gamemode.ini @@ -0,0 +1,29 @@ +[general] +reaper_freq=5 +desiredgov=performance +; TODO: Maybe set this +;defaultgov=powersave + +; The iGPU desired governor is used when the integrated GPU is under heavy load +igpu_desiredgov=powersave +igpu_power_threshold=0.3 + +softrealtime=on; +renice=0 +ioprio=0 +inhibit_screensaver=1 + +[filter] +; If "whitelist" entry has a value(s) +; gamemode will reject anything not in the whitelist +;whitelist=RiseOfTheTombRaider + +; Gamemode will always reject anything in the blacklist +;blacklist=HalfLife3 +; glxgears + +[gpu] + +[supervisor] + +[custom] \ No newline at end of file