Add gamemdoe

This commit is contained in:
iFargle 2024-01-07 18:50:15 +09:00
parent b8495e2e58
commit 65cc86d86a
2 changed files with 38 additions and 0 deletions

View file

@ -25,6 +25,25 @@
# Set the networking hostname:
networking.hostName = "nixos-desktop";
programs.gamemode = {
enable = true;
enableRenice = true;
settings = {
general = {
renice = 10;
};
# 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'";
};
};
hardware = {
opengl = {

View file

@ -43,6 +43,25 @@
};
};
programs.gamemode = {
enable = true;
enableRenice = true;
settings = {
general = {
renice = 10;
};
# 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'";
};
};
environment.systemPackages = with pkgs; [
distrobox
# Game related things