Enable mangohud program instead of just adding to packages

This commit is contained in:
Evie Litherland-Smith 2024-11-15 05:42:31 +00:00
parent 47ee8cdfe0
commit 67723bb2e3

View file

@ -1,9 +1,4 @@
{ { pkgs, username, ... }:
config,
pkgs,
username,
...
}:
{ {
environment = { environment = {
sessionVariables.MANGOHUD = 1; sessionVariables.MANGOHUD = 1;
@ -22,21 +17,9 @@
capSysNice = true; capSysNice = true;
}; };
}; };
home-manager.users.${username}.xdg.configFile."MangoHud/MangoHud.conf".text = home-manager.users.${username}.programs.mangohud = {
with config.lib.stylix.scheme; '' enable = true;
preset=1 enableSessionWide = true;
text_color=${base00} settings.preset = 2;
gpu_color=${green} };
cpu_color=${green}
vram_color=${magenta}
ram_color=${magenta}
engine_color=${red}
io_color=${magenta}
frametime_color=${green}
background_color=${base05}
media_player_color=${base00}
wine_color=${red}
battery_color=${orange}
network_color=${red}
'';
} }