From b646befedf5f926a5bd6801c4c34b4e01eabab72 Mon Sep 17 00:00:00 2001 From: Elec3137 Date: Fri, 20 Feb 2026 15:03:33 -0800 Subject: [PATCH] Revert "modify mangohud.nix to allow quick switch of config" Mangohud seems to not handle symlinks properly, so the commit resulted in the config not being used at all. This reverts commit fc735ecfd2b44d83b9c36eafac260280ca923a06. --- graphical/games/mangohud.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/graphical/games/mangohud.nix b/graphical/games/mangohud.nix index 1d77a72..6457fd4 100644 --- a/graphical/games/mangohud.nix +++ b/graphical/games/mangohud.nix @@ -67,11 +67,9 @@ 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 = "/etc/${name}.conf"; + MANGOHUD_CONFIGFILE = pkgs.writeText "MangoHud.conf" cfg.extraConfig; }; }; }