mangohud: make false values actually disable (#6299)

Currently the following, will produce `some_opt=false` in the
rendered config:

```nix
programs.mangohud.settings = {
  some_opt = false;
};
```

With the intention being to disable the option, this would be
incorrect, as per the following stated at:
<0575c8eb1f/data/MangoHud.conf (L3C5-L4C1)>

> Use some_parameter=0 to disable a parameter (only works with on/off
> parameters)

As such, I changed the rendering to follow this.
This will be output instead: `some_opt=0`
This commit is contained in:
Sebastián Zavala Villagómez 2025-01-13 10:20:04 -05:00 committed by GitHub
parent 2532b500c3
commit 9616d81f98
Failed to generate hash of commit
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ let
int = toString option;
float = int;
path = int;
bool = "false";
bool = "0"; # "on/off" opts are disabled with `=0`
string = option;
list = concatStringsSep "," (lists.forEach option (x: toString x));
}.${builtins.typeOf option};

View file

@ -6,7 +6,7 @@ cpu_stats
cpu_temp
cpu_text=CPU
fps_limit=30,60
legacy_layout=false
legacy_layout=0
media_player_name=spotify
media_player_order=title,artist,album
output_folder=/home/user/Documents/mangohud