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 @@
{
config,
pkgs,
username,
...
}:
{ pkgs, username, ... }:
{
environment = {
sessionVariables.MANGOHUD = 1;
@ -22,21 +17,9 @@
capSysNice = true;
};
};
home-manager.users.${username}.xdg.configFile."MangoHud/MangoHud.conf".text =
with config.lib.stylix.scheme; ''
preset=1
text_color=${base00}
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}
'';
home-manager.users.${username}.programs.mangohud = {
enable = true;
enableSessionWide = true;
settings.preset = 2;
};
}