nix/modules/desktop/steam.nix

23 lines
341 B
Nix

{
lib,
config,
pkgs,
...
}:
let
cfg = config.my.desktop.steam;
in
{
options.my.desktop.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;
};
}