mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
29 lines
802 B
Nix
29 lines
802 B
Nix
{ config, lib, pkgs, pkgs-unstable, user, ... }:
|
|
|
|
let cfg = config.modules.gaming.steam;
|
|
in {
|
|
options.modules.gaming.steam.enable = lib.mkEnableOption "steam";
|
|
config = lib.mkIf cfg.enable {
|
|
hardware.opengl = { # this fixes the "glXChooseVisual failed" bug, context: https://github.com/NixOS/nixpkgs/issues/47932
|
|
enable = true;
|
|
driSupport32Bit = true;
|
|
};
|
|
|
|
# optionally enable 32bit pulseaudio support if pulseaudio is enabled
|
|
hardware.pulseaudio.support32Bit = config.hardware.pulseaudio.enable;
|
|
|
|
hardware.steam-hardware.enable = true;
|
|
|
|
environment.systemPackages = [
|
|
pkgs.steam
|
|
pkgs.steamtinkerlaunch
|
|
pkgs.yuzu-early-access
|
|
pkgs.dolphin-emu
|
|
pkgs.ppsspp
|
|
pkgs-unstable.sunshine
|
|
pkgs-unstable.moonlight-qt
|
|
];
|
|
};
|
|
|
|
}
|