{ options, config, lib, pkgs, ... }:
with lib;
with lib.custom;
let
    cfg = config.modules.desktop.gaming.steam;
in {
    options.modules.desktop.gaming.steam = with types; {
        enable = mkBoolOpt false;
    };

    config = mkIf cfg.enable {
        programs.steam.enable = true;

        # better for steam proton games
        systemd.extraConfig = "DefaultLimitNOFILE=1048576";
    };
}