lib.booleans: add yesNo function (#2818)

Closes #2772
This commit is contained in:
Sumner Evans 2022-04-07 22:36:13 -06:00 committed by GitHub
parent 55779b20cd
commit f911ebbec9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 51 additions and 56 deletions

View file

@ -18,9 +18,7 @@ let
rec {
int = toString option;
float = int;
bool = if option then "yes" else "no";
bool = lib.hm.booleans.yesNo option;
string = option;
}.${typeOf option};