2023-11-23 01:21:58 -08:00
|
|
|
{ config, lib, pkgs, 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;
|
|
|
|
|
2023-11-23 01:21:58 -08:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
steam
|
|
|
|
yuzu-early-access
|
|
|
|
dolphin-emu
|
|
|
|
ppsspp
|
|
|
|
mgba
|
|
|
|
sunshine
|
|
|
|
moonlight-qt
|
2023-12-13 23:47:17 -08:00
|
|
|
prismlauncher
|
|
|
|
jdk17
|
2023-07-10 17:52:34 -07:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|