Files
nix-config/modules/home/games/mangohud.org
T
phundrak 216065c4f2 refactor: change to litterate config
Configuration is now held by the `.org` files. All `.nix` files are
tangled from the org-mode files.
2026-10-08 15:18:56 +02:00

920 B
Raw Blame History

MangoHud

MangoHud

MangoHud is the performance overlay I use to keep an eye on FPS, frame time and GPU/CPU usage while gaming. Here’s the homeManager.mangohud module.

{
  flake.modules.homeManager.mangohud = {
    lib,
    config,
    ...
  }:
    with lib; let
      cfg = config.home.games.mangohud;
    in {
      <<options>>
      <<config>>
    };
}

Declaring the Option

options.home.games.mangohud.enable = mkEnableOption "Enable MangoHud performance overlay";

Enabling It Session-Wide

enableSessionWide turns MangoHud on for my whole session. It auto-launches for any game or app that supports it.

config.programs.mangohud = mkIf cfg.enable {
  enable = true;
  enableSessionWide = true;
};