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:
parent
f0f468a5cc
commit
b646befedf
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue