Gaming: enable mangohud

This commit is contained in:
Toast 2023-06-30 16:43:30 +02:00
parent 8f7e8e3661
commit e844d29eae
2 changed files with 20 additions and 0 deletions

View file

@ -3,5 +3,6 @@
{ {
imports = [ imports = [
./steam.nix ./steam.nix
./mangohud.nix
]; ];
} }

19
roles/gaming/mangohud.nix Normal file
View file

@ -0,0 +1,19 @@
{ config, ... }:
{
# This does the same as enableSessionWide does on the mangohud config
environment.sessionVariables = { MANGOHUD = "1"; MANGOHUD_DLSYM = "1"; };
home-manager.users.toast = { config, ... }:
{
programs.mangohud = {
enable = true;
# TODO: fix envvars set by home manager not applying for some reason
# This only works for Vulkan, openGL programs still need the mangohud wrapper
enableSessionWide = true;
settings = {
preset = 4;
};
};
};
}