23 lines
1.0 KiB
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 {
2024-10-24 22:37:50 -07:00
environment.systemPackages = with pkgs; [
gamescope # Utility for running games using Valve's Steam Play compatibility layer with improved performance and compatibility.
mangohud # Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more.
2024-10-26 18:54:53 -07:00
steamtinkerlaunch # Launcher and optimization tool for Steam games.
2024-10-24 22:37:50 -07:00
];
2023-07-10 17:52:34 -07:00
2024-10-24 22:37:50 -07:00
hardware.graphics.enable = true; # this fixes the "glXChooseVisual failed" bug, context: https://github.com/NixOS/nixpkgs/issues/47932
hardware.pulseaudio.support32Bit = config.hardware.pulseaudio.enable; # Enable 32bit pulseaudio support if pulseaudio is enabled
2023-07-10 17:52:34 -07:00
hardware.steam-hardware.enable = true;
2024-10-24 22:37:50 -07:00
2024-07-11 22:02:22 -07:00
programs.steam = {
enable = true;
2024-10-24 22:37:50 -07:00
package = with pkgs; steam.override { extraPkgs = pkgs: [ attr ]; }; # Workaround from: https://github.com/NixOS/nixpkgs/issues/236561
2024-07-11 22:02:22 -07:00
};
2023-07-10 17:52:34 -07:00
};
}