summaryrefslogtreecommitdiff
path: root/nixos/modules/programs/steam.nix
blob: 91c4af7da0f451a0d45c7b6a238fe2f22ae25529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# https://nixos.wiki/wiki/Steam.

{ config, lib, pkgs, ... }:
with lib;

let
  cfg = config.eth.programs.steam;

in {
  options.eth.programs.steam = {
    enable = mkEnableOption "Whether to enable Steam and supports";
  };

  config = mkIf cfg.enable {
    environment.systemPackages = with pkgs; [
      steam
      steam-run-native
    ];

    hardware.opengl.driSupport32Bit = true;
    hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ];
    hardware.pulseaudio.support32Bit = true;
  };
}