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:
parent
2532b500c3
commit
9616d81f98
2 changed files with 2 additions and 2 deletions
|
@ -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};
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue