NixOS-Config/modules/home/programs/gui/mangohud/default.nix

29 lines
721 B
Nix
Raw Normal View History

2024-10-09 03:36:08 -04:00
{ pkgs, ... }:
{
2024-08-24 22:16:51 -04:00
home = {
packages = with pkgs; [ mangohud ];
file = {
# These options exist in Nixlang, but the order is not respected.
2024-11-22 20:28:52 -05:00
# As of 24.11, exec is no longer respected either. No clue why.
".config/MangoHud/MangoHud.conf".text = ''
2024-08-24 22:16:51 -04:00
table_columns=2
frametime=0
legacy_layout=0
font_scale=0.80
background_alpha=0.25
exec=echo $(echo $XDG_CURRENT_DESKTOP | sed 's/./\U&/') on $(cat /etc/os-release | grep PRETTY_NAME | cut -d '"' -f 2)
fps
fps_color_change
ram
vram
cpu_stats
cpu_load_change
gpu_stats
gpu_load_change
frame_timing
'';
};
};
}