about summary refs log tree commit diff
path: root/modules/games/mangohud.nix
blob: 955f50c3fef8382c7901d74bbba6983de9205f10 (plain) (blame)
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
{ 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;
        };
      };
    };
  };
}

Consider giving Nix/NixOS a try! <3