feat: new gaming optimizations and mangohud

This commit is contained in:
Youwen Wu 2024-12-14 15:54:14 -08:00
parent e38ab3270a
commit a1865b410f
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -2,6 +2,8 @@
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
ryujinx ryujinx
mangohud
mangojuice
]; ];
programs.steam = { programs.steam = {
enable = true; enable = true;
@ -13,6 +15,22 @@
programs.gamescope.enable = true; 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: { nixpkgs.config.packageOverrides = pkgs: {
steam = pkgs.steam.override { steam = pkgs.steam.override {
extraPkgs = extraPkgs =