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 fc735ecfd2.
This commit is contained in:
Elec3137 2026-02-20 15:03:33 -08:00
commit b646befedf

View file

@ -67,11 +67,9 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
environment.systemPackages = [ cfg.package ]; environment.systemPackages = [ cfg.package ];
environment.etc."${name}.conf".text = cfg.extraConfig;
environment.variables = { environment.variables = {
MANGOHUD = 1; # enables mangohud by default on all vulkan games MANGOHUD = 1; # enables mangohud by default on all vulkan games
MANGOHUD_CONFIGFILE = "/etc/${name}.conf"; MANGOHUD_CONFIGFILE = pkgs.writeText "MangoHud.conf" cfg.extraConfig;
}; };
}; };
} }