tweaked gaming.nix

This commit is contained in:
serenity-F 2025-03-16 11:36:13 +10:00
parent 5cd4222f41
commit b2299f67f0

View file

@ -1,22 +1,20 @@
# # Steam crashes when launched through wofi but not terminal
## See: https://github.com/ValveSoftware/steam-for-linux/issues/9940
{ pkgs, inputs, ... }: { pkgs, inputs, ... }:
{ {
## Open tablet driver, for Osu!, mainly.
hardware = { hardware.opentabletdriver = {
opentabletdriver = { enable = true; # Enables the driver lol
## Open tablet driver, for Osu!, mainly. daemon.enable = true; # Enables the daemon via systemd
enable = true; blacklistedKernelModules = [ # Disable conflicting drivers
## Enables the daemon via systemd "hid-uclogic"
daemon.enable = true; "wacom"
## Disable conflicting drivers ];
blacklistedKernelModules = [ "hid-uclogic" "wacom" ];
};
}; };
services = { ## ratbagd for gaming mouse config
## ratbagd for gaming mouse config services.ratbagd.enable = true;
ratbagd.enable = true;
};
environment = { environment = {
@ -29,7 +27,7 @@
prismlauncher # Modded Minecraft client prismlauncher # Modded Minecraft client
osu-lazer-bin # Rhythm is just a click away! osu-lazer-bin # Rhythm is just a click away!
inputs.nix-gaming.packages.${pkgs.system}.osu-mime inputs.nix-gaming.packages.${pkgs.system}.osu-mime
#inputs.nix-gaming.packages.${pkgs.system}.osu-lazer-bin #inputs.nix-gaming.packages.${pkgs.system}.osu-lazer-bin # Not using this one but still want it here lol
## Emulation ## Emulation
retroarchFull # Emulator frontend retroarchFull # Emulator frontend
] ++ (with pkgs.libretro; [ ] ++ (with pkgs.libretro; [
@ -50,18 +48,21 @@
## Note: this doesn't replace PATH, it just adds this to it ## Note: this doesn't replace PATH, it just adds this to it
PATH = [ "\${XDG_BIN_HOME}" ]; PATH = [ "\${XDG_BIN_HOME}" ];
SDL_VIDEODRIVER = "wayland,windows"; SDL_VIDEODRIVER = "wayland,windows";
## Steam crashes when launched through wofi but not terminal
## MAYBE this will fix it?
## See: https://github.com/ValveSoftware/steam-for-linux/issues/9940
DRI_PRIME = "0,steam";
}; };
}; };
programs = { programs = {
## Java, just in case i guess ?
java.enable = true;
## This should help games run more betterer
gamescope = {
enable = true;
capSysNice = true;
};
## "GameMode" - https://nixos.wiki/wiki/Gamemode ## "GameMode" - https://nixos.wiki/wiki/Gamemode
## (config copy-pasted from mynixos) ## (config copy-pasted from mynixos)
gamemode = { gamemode = {
@ -81,15 +82,6 @@
}; };
}; };
## Java, just in case i guess ?
java.enable = true;
## This should help games run more betterer
gamescope = {
enable = true;
capSysNice = true;
};
## Steam itself ## Steam itself
steam = { steam = {
enable = true; enable = true;
@ -111,8 +103,6 @@
# #gamemode # #gamemode
# ] ++ (with pkgs.xorg; [ libXi libXcursor libXinerama libXScrnSaver ]); # ] ++ (with pkgs.xorg; [ libXi libXcursor libXinerama libXScrnSaver ]);
#}; #};
## Not sure we need gamescope here
## as it's defined elsewhere but o well
#extraPackages = with pkgs; [ ]; #extraPackages = with pkgs; [ ];
## Gotta have the glorious eggroll ## Gotta have the glorious eggroll
extraCompatPackages = with pkgs; [ proton-ge-bin ]; extraCompatPackages = with pkgs; [ proton-ge-bin ];