From 5339eeebce9a546a6f7b3dc34ddb4f0eaf7da39e Mon Sep 17 00:00:00 2001 From: Jay Looney Date: Tue, 25 Nov 2025 11:56:03 -0600 Subject: [PATCH] feat: add gamemode and gamescope /w CAP_SYS_NICE --- modules/nixos/gaming.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/nixos/gaming.nix b/modules/nixos/gaming.nix index 69dcd1b..1e86c7e 100644 --- a/modules/nixos/gaming.nix +++ b/modules/nixos/gaming.nix @@ -5,11 +5,12 @@ zw.gaming.enable = lib.mkEnableOption "Enable Gaming"; }; + # https://wiki.nixos.org/wiki/Category:Gaming config = lib.mkIf config.zw.gaming.enable { environment.systemPackages = with pkgs; [ mangohud protonup-qt - # lutris # TODO: Having an issue after flake update + lutris # TODO: Having an issue after flake update bottles heroic ]; @@ -20,5 +21,11 @@ protontricks.enable = true; gamescopeSession.enable = true; }; + + programs.gamemode.enable = true; + programs.gamescope = { + enable = true; + capSysNice = true; + }; }; }