nix/modules/desktop/steam.nix
2024-08-27 09:46:44 +02:00

23 lines
319 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;
};
}