nix-config/nixos/modules/steam.nix

28 lines
450 B
Nix

{
config,
pkgs,
lib,
...
}:
with lib;
let
cfg = config.dadada.steam;
in
{
options = {
dadada.steam = {
enable = mkEnableOption "Enable Steam config";
};
};
config = mkIf cfg.enable {
programs.steam.enable = true;
hardware.graphics = {
enable = true;
extraPackages32 = with pkgs.pkgsi686Linux; [
libva
libvdpau-va-gl
];
};
services.pulseaudio.support32Bit = true;
};
}