{ config, lib, ... }: let cfg = config.hm.soft.mangohud; in { options.hm.soft.mangohud.enable = lib.mkEnableOption "mangohud hm config"; config = lib.mkIf cfg.enable { programs.mangohud = { enable = true; settings = { table_columns = 4; font_scale = 1.3; cellpadding_y = 0.1; round_corners = 10; fps_limit = 240; gpu_temp = true; gpu_core_clock = true; cpu_temp = true; cpu_mhz = true; fps_metrics = "0.01"; wine = true; }; }; }; }