41 lines
915 B
Nix
41 lines
915 B
Nix
{ modules, ... }:
|
|
{
|
|
modules.gamemode = {
|
|
homeManager =
|
|
{ home, ... }:
|
|
{
|
|
|
|
};
|
|
nixos =
|
|
{ nixos, ... }:
|
|
{
|
|
programs.gamemode = {
|
|
enable = true;
|
|
enableRenice = true;
|
|
settings = {
|
|
general = {
|
|
renice = 10;
|
|
ioprio = 0;
|
|
inhibit_screensaver = 1;
|
|
disable_splitlock = 1;
|
|
};
|
|
cpu = {
|
|
park_cores = "no";
|
|
pin_cores = "yes";
|
|
};
|
|
gpu = {
|
|
apply_gpu_optimisations = "accept-responsibility";
|
|
gpu_device = 1;
|
|
nv_powermizer_mode = 1;
|
|
nv_perf_level = -1;
|
|
};
|
|
script = {
|
|
gamestart = "nvidia-smi --power-limit=175";
|
|
gamestop = "nvidia-smi --power-limit=125";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|