mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-02 03:21:14 +00:00
10 lines
269 B
Nix
10 lines
269 B
Nix
|
# From home-manager: https://github.com/nix-community/home-manager/blob/master/modules/lib/booleans.nix
|
||
|
{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";
|
||
|
}
|