feat(gaming): restructure configuration

This commit is contained in:
Felix Schröter 2023-07-22 15:06:19 +02:00
parent 5928e539fb
commit f0d09a9d28
Signed by: felschr
GPG key ID: 671E39E6744C807D
5 changed files with 20 additions and 32 deletions

View file

@ -1,17 +1,5 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
{
hardware.opengl = {
# this fixes the "glXChooseVisual failed" bug, context: https://github.com/NixOS/nixpkgs/issues/47932
enable = true;
driSupport = true;
driSupport32Bit = true;
};
# optionally enable 32bit pulseaudio support if pulseaudio is enabled
hardware.pulseaudio.support32Bit = config.hardware.pulseaudio.enable;
hardware.steam-hardware.enable = true;
programs.steam.gamescopeSession.enable = true;
}

6
hardware/xbox.nix Normal file
View file

@ -0,0 +1,6 @@
{ pkgs, ... }:
{
hardware.xone.enable = true;
hardware.xpadneo.enable = true;
}