feat: add gamemode and gamescope /w CAP_SYS_NICE

This commit is contained in:
Jay Looney 2025-11-25 11:56:03 -06:00
parent 7f361458ed
commit 5339eeebce

View file

@ -5,11 +5,12 @@
zw.gaming.enable = lib.mkEnableOption "Enable Gaming"; zw.gaming.enable = lib.mkEnableOption "Enable Gaming";
}; };
# https://wiki.nixos.org/wiki/Category:Gaming
config = lib.mkIf config.zw.gaming.enable { config = lib.mkIf config.zw.gaming.enable {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
mangohud mangohud
protonup-qt protonup-qt
# lutris # TODO: Having an issue after flake update lutris # TODO: Having an issue after flake update
bottles bottles
heroic heroic
]; ];
@ -20,5 +21,11 @@
protontricks.enable = true; protontricks.enable = true;
gamescopeSession.enable = true; gamescopeSession.enable = true;
}; };
programs.gamemode.enable = true;
programs.gamescope = {
enable = true;
capSysNice = true;
};
}; };
} }