gaming tweaks
This commit is contained in:
parent
5f121c9112
commit
95d451e459
1 changed files with 34 additions and 4 deletions
|
|
@ -68,7 +68,6 @@ in {
|
|||
boot.zswap.enable = lib.mkDefault true;
|
||||
services.tlp.enable = false;
|
||||
services.power-profiles-daemon.enable = lib.mkDefault false;
|
||||
services.system76-scheduler.enable = true;
|
||||
services.tuned = {
|
||||
enable = lib.mkDefault true;
|
||||
settings.dynamic_tuning = lib.mkDefault true;
|
||||
|
|
@ -89,10 +88,17 @@ in {
|
|||
hardware.steam-hardware.enable = lib.mkDefault true;
|
||||
|
||||
# maybe steam betterer?
|
||||
programs.steam.gamescopeSession.enable = true;
|
||||
programs.steam = {
|
||||
gamescopeSession.enable = lib.mkDefault true;
|
||||
extest.enable = true;
|
||||
extraCompatPackages = [
|
||||
pkgs.proton-ge-bin
|
||||
];
|
||||
protontricks.enable = true;
|
||||
};
|
||||
programs.gamescope = {
|
||||
enable = lib.mkDefault config.programs.steam.enable;
|
||||
capSysNice = true;
|
||||
capSysNice = lib.mkDefault true;
|
||||
};
|
||||
|
||||
# Needed for lots of controller stuff
|
||||
|
|
@ -101,7 +107,31 @@ in {
|
|||
# Optimizes running games
|
||||
programs.gamemode = {
|
||||
enable = true;
|
||||
settings.general.renice = -10;
|
||||
general = {
|
||||
renice = 10;
|
||||
ioprio = 0;
|
||||
inhibit_screensaver = 0;
|
||||
disable_splitlock = 1;
|
||||
softrealtime = "auto";
|
||||
};
|
||||
|
||||
# Warning: GPU optimisations have the potential to damage hardware
|
||||
#gpu = {
|
||||
# apply_gpu_optimisations = "accept-responsibility";
|
||||
# gpu_device = 0;
|
||||
# amd_performance_level = "vr";
|
||||
#};
|
||||
|
||||
cpu = {
|
||||
parkcores = "no";
|
||||
pin_cores = "yes";
|
||||
|
||||
};
|
||||
|
||||
custom = {
|
||||
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
|
||||
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
|
||||
};
|
||||
};
|
||||
|
||||
# Allows realtime stuff, useful for games, audio etc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue