nix/modules/desktop/steam.nix
2024-06-27 15:31:12 +02:00

18 lines
311 B
Nix

{ lib, config, pkgs, ... }:
let
cfg = config.steam;
in
{
options.steam = {
enable = lib.mkEnableOption "Enable Steam and apply customization module";
};
config = lib.mkIf cfg.enable {
programs.steam.enable = true;
# Necessary for Steam
hardware.opengl.driSupport32Bit = true;
};
}