dotfiles/modules/apps/steam/default.nix
Alejandro Angulo eb6422e943
Moved openGL config into steam module
I originally added the openGL config for steam so I think it makes sense
to define that in the steam module.
2023-03-25 09:11:44 -07:00

29 lines
455 B
Nix

{
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.aa.apps.steam;
in {
options.aa.apps.steam = with types; {
enable = mkEnableOption "steam";
};
config = mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
};
}