mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-09 20:01:34 +00:00
refactor: move lib out of modules
This commit is contained in:
parent
206e17bbe4
commit
89be2b9d37
8 changed files with 334 additions and 0 deletions
9
lib/booleans.nix
Normal file
9
lib/booleans.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
# 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";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue