1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

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

5
modules/lib/booleans.nix Normal file
View file

@ -0,0 +1,5 @@
{ lib }: {
# Converts a boolean to a yes/no string. This is used in lots of
# configuration formats.
yesNo = value: if value then "yes" else "no";
}