modify mangohud.nix to allow quick switch of config
This commit is contained in:
parent
da97f617fb
commit
fc735ecfd2
1 changed files with 3 additions and 1 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue