From fc735ecfd2b44d83b9c36eafac260280ca923a06 Mon Sep 17 00:00:00 2001 From: Elec3137 Date: Fri, 13 Feb 2026 10:58:10 -0800 Subject: [PATCH] modify mangohud.nix to allow quick switch of config --- graphical/games/mangohud.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/graphical/games/mangohud.nix b/graphical/games/mangohud.nix index 6457fd4..1d77a72 100644 --- a/graphical/games/mangohud.nix +++ b/graphical/games/mangohud.nix @@ -67,9 +67,11 @@ in config = lib.mkIf cfg.enable { environment.systemPackages = [ cfg.package ]; + environment.etc."${name}.conf".text = cfg.extraConfig; + environment.variables = { MANGOHUD = 1; # enables mangohud by default on all vulkan games - MANGOHUD_CONFIGFILE = pkgs.writeText "MangoHud.conf" cfg.extraConfig; + MANGOHUD_CONFIGFILE = "/etc/${name}.conf"; }; }; }