21 lines
617 B
Nix
Raw Normal View History

2023-05-13 19:09:56 -07:00
{ config, lib, pkgs, user, ... }:
2023-05-13 19:09:08 -07:00
2023-05-13 19:09:56 -07:00
let cfg = config.modules.editors.steam;
2023-05-13 19:09:08 -07:00
in {
2023-05-13 19:09:56 -07:00
options.modules.editors.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
2023-05-13 19:09:08 -07:00
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 ];
};
}