add mangohud configuration

This commit is contained in:
Seaswimmer 2024-12-23 11:10:10 -05:00
parent 12ec86fc41
commit d28523c069
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087
3 changed files with 39 additions and 1 deletions

View file

@ -149,6 +149,7 @@
imports = [
./home-manager/browser.nix
./home-manager/gauntlet.nix
./home-manager/mangohud.nix
./home-manager/plasma.nix
./home-manager/tpm.nix
./home-manager/user.nix

38
home-manager/mangohud.nix Normal file
View file

@ -0,0 +1,38 @@
{ pkgs, ... }:
let
customfonts = pkgs.callPackage ../packages/customfonts.nix { inherit pkgs; };
in
{
programs.mangohud = {
enable = true;
enableSessionWide = true;
settings = {
# see https://github.com/flightlessmango/MangoHud/blob/master/data/MangoHud.conf for default config and configuration options
# General
cpu_stats = true; # On by default
cpu_temp = true;
gpu_stats = true; # On by default
gpu_temp = true;
fps = true; # On by default
frametime = true; # On by default
throttling_status = true; # On by default
ram = true;
vram = true;
# Misc
fps_limit = 144;
show_fps_limit = true;
font_file = "${customfonts}/share/fonts/opentype/ComicCode Nerd Font.otf";
# Keybindings
toggle_hud = "Shift_R+F12";
toggle_hud_position = "Shift_R+F11";
toggle_preset = "Shift_R+F10";
toggle_fps_limit = "Shift_L+F1";
toggle_logging = "Shift_L+F2";
reload_cfg = "Shift_L+F4";
upload_log = "Shift_L+F3";
reset_fps_metrics = "Shift_R+f9";
};
};
}

View file

@ -7,7 +7,6 @@
};
environment.systemPackages = with pkgs; [
gamemode
mangohud
(prismlauncher.override {
jdks = with pkgs; [
jdk8