From 67723bb2e3a9a557e5f4e68b99927742429a3fad Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 15 Nov 2024 05:42:31 +0000 Subject: [PATCH] Enable mangohud program instead of just adding to packages --- system/steam.nix | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/system/steam.nix b/system/steam.nix index 0410da43..041f2148 100644 --- a/system/steam.nix +++ b/system/steam.nix @@ -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; + }; }