nix-stuff/roles/gaming/mangohud.nix
2023-06-30 16:43:30 +02:00

19 lines
488 B
Nix

{ 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;
};
};
};
}