30 lines
818 B
Nix
Raw Normal View History

2023-08-05 11:38:27 -07:00
{ config, lib, pkgs, pkgs-unstable, user, ... }:
2023-07-10 17:52:34 -07:00
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
2023-09-03 20:54:32 -07:00
pkgs.steamtinkerlaunch
pkgs.yuzu-early-access
2023-08-21 21:05:02 -07:00
pkgs.dolphin-emu
pkgs.ppsspp
pkgs.mgba
2023-08-21 21:05:02 -07:00
pkgs-unstable.sunshine
pkgs-unstable.moonlight-qt
2023-07-10 17:52:34 -07:00
];
};
}