From a1865b410f4146c2e160777f256bf0d7c70407c9 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sat, 14 Dec 2024 15:54:14 -0800 Subject: [PATCH] feat: new gaming optimizations and mangohud --- modules/linux/gaming/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/linux/gaming/default.nix b/modules/linux/gaming/default.nix index 5e32bf8..8c0fc02 100755 --- a/modules/linux/gaming/default.nix +++ b/modules/linux/gaming/default.nix @@ -2,6 +2,8 @@ { environment.systemPackages = with pkgs; [ ryujinx + mangohud + mangojuice ]; programs.steam = { enable = true; @@ -13,6 +15,22 @@ programs.gamescope.enable = true; + programs.gamemode = { + enable = true; + enableRenice = true; + settings = { + general = { + renice = 10; + }; + custom = { + start = "${pkgs.libnotify}/bin/notify-send 'GameMode engaged'"; + end = "${pkgs.libnotify}/bin/notify-send 'GameMode disengaged'"; + }; + }; + }; + + users.users.youwen.extraGroups = [ "gamemode" ]; + nixpkgs.config.packageOverrides = pkgs: { steam = pkgs.steam.override { extraPkgs =