fix gamemode

This commit is contained in:
Reid 2024-04-27 15:51:56 -07:00
parent e400a3dc90
commit 3fff2cd853
2 changed files with 7 additions and 1 deletions

View file

@ -22,4 +22,4 @@ each host should have these files:
- qt themes? - qt themes?
- sddm cursors no work :( - sddm cursors no work :(
- setup editorconfig everywhere - setup editorconfig everywhere
- fix gamemoded cpu sched - divide steam and gamemode?

View file

@ -10,6 +10,10 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.steam.enable = true; programs.steam.enable = true;
# optimize linux system performance on demand
# https://github.com/FeralInteractive/gamemode
user.extraGroups = [ "gamemode" ];
programs.gamemode = { programs.gamemode = {
enable = true; enable = true;
enableRenice = true; enableRenice = true;
@ -20,6 +24,7 @@ in {
}; };
}; };
}; };
programs.gamescope = { programs.gamescope = {
enable = true; enable = true;
capSysNice = true; capSysNice = true;
@ -28,6 +33,7 @@ in {
enable = true; enable = true;
args = [ "-W 1920" "-H 1080" "-r 60" "--expose-wayland" "-e" ]; args = [ "-W 1920" "-H 1080" "-r 60" "--expose-wayland" "-e" ];
}; };
user.packages = [ pkgs.protontricks pkgs.steam-run ]; user.packages = [ pkgs.protontricks pkgs.steam-run ];
}; };
} }