summaryrefslogtreecommitdiff
path: root/modules/nixos/games/mangohud.nix
blob: 509e035e6d723419f758666bc2f51282b129df3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  config,
  lib,
  ...
}:
with lib; let
  cfg = config.nixfiles.modules.games.mangohud;
in {
  options.nixfiles.modules.games.mangohud.enable = mkEnableOption "MangoHud";

  config = mkIf cfg.enable {
    hm = {
      stylix.targets.mangohud.enable = false;

      programs.mangohud = {
        enable = true;
        settings = {
          fps = true;
          frame_timing = true;
          gpu_stats = true;
          gpu_temp = true;
          cpu_stats = true;
          cpu_temp = true;
          ram = true;
          vram = true;
        };
      };
    };
  };
}