34 lines
810 B
Nix
Raw Normal View History

{ 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;
environment.systemPackages = with pkgs; [
steam
2024-01-21 11:57:38 -08:00
steamtinkerlaunch
2024-01-21 20:02:24 -08:00
gamescope
2024-03-05 22:41:45 -08:00
yuzu-archive
dolphin-emu
ppsspp
mgba
2024-01-21 11:57:38 -08:00
ares
sunshine
moonlight-qt
2023-12-13 23:47:17 -08:00
prismlauncher
jdk17
2023-07-10 17:52:34 -07:00
];
};
}