From 3fff2cd8532a53397816dc468284b94025c7aeef Mon Sep 17 00:00:00 2001 From: "Reid \"reidlab" Date: Sat, 27 Apr 2024 15:51:56 -0700 Subject: [PATCH] fix gamemode --- README.md | 2 +- modules/software/distractions/steam.nix | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fb22e70..887df78 100755 --- a/README.md +++ b/README.md @@ -22,4 +22,4 @@ each host should have these files: - qt themes? - sddm cursors no work :( - setup editorconfig everywhere - - fix gamemoded cpu sched \ No newline at end of file + - divide steam and gamemode? \ No newline at end of file diff --git a/modules/software/distractions/steam.nix b/modules/software/distractions/steam.nix index e9b8b83..237fc5f 100644 --- a/modules/software/distractions/steam.nix +++ b/modules/software/distractions/steam.nix @@ -10,6 +10,10 @@ in { config = mkIf cfg.enable { programs.steam.enable = true; + + # optimize linux system performance on demand + # https://github.com/FeralInteractive/gamemode + user.extraGroups = [ "gamemode" ]; programs.gamemode = { enable = true; enableRenice = true; @@ -20,6 +24,7 @@ in { }; }; }; + programs.gamescope = { enable = true; capSysNice = true; @@ -28,6 +33,7 @@ in { enable = true; args = [ "-W 1920" "-H 1080" "-r 60" "--expose-wayland" "-e" ]; }; + user.packages = [ pkgs.protontricks pkgs.steam-run ]; }; } \ No newline at end of file