Gaming: enable mangohud
This commit is contained in:
parent
8f7e8e3661
commit
e844d29eae
2 changed files with 20 additions and 0 deletions
19
roles/gaming/mangohud.nix
Normal file
19
roles/gaming/mangohud.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue