summaryrefslogtreecommitdiff
path: root/users/seth/programs/mangohud.nix
blob: 6d325b24a59194cce2cba99be40265d7677f390b (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
{
  config,
  lib,
  pkgs,
  ...
}: let
  cfg = config.desktop;
  inherit (lib) mkIf;
in {
  config = mkIf cfg.enable {
    home.packages = with pkgs; [mangohud];

    xdg.configFile."MangoHud/MangoHud.conf" = {
      text = ''
        legacy_layout=false
        cpu_stats
        cpu_temp
        gpu_stats
        gpu_temp
        fps
        frametime
        media_player
        media_player_name = spotify
      '';
    };
  };
}