feat(gaming): restructure configuration
This commit is contained in:
parent
5928e539fb
commit
f0d09a9d28
5 changed files with 20 additions and 32 deletions
|
@ -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
6
hardware/xbox.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
hardware.xone.enable = true;
|
||||
hardware.xpadneo.enable = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue