2024-05-30 16:54:58 -03:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2022-11-29 15:50:12 -03:00
|
|
|
programs.gamemode.enable = true;
|
|
|
|
programs.gamemode.enableRenice = true;
|
|
|
|
programs.gamemode.settings = {
|
2024-05-30 16:54:58 -03:00
|
|
|
general = {
|
|
|
|
renice = 10;
|
|
|
|
};
|
2022-11-29 15:50:12 -03:00
|
|
|
|
|
|
|
# Warning: GPU optimisations have the potential to damage hardware
|
|
|
|
gpu = {
|
|
|
|
apply_gpu_optimisations = "accept-responsibility";
|
|
|
|
gpu_device = 0;
|
|
|
|
amd_performance_level = "high";
|
|
|
|
};
|
|
|
|
|
|
|
|
custom = {
|
|
|
|
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
|
|
|
|
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|