refactor: move lib out of modules

This commit is contained in:
NotAShelf 2023-02-06 21:57:35 +03:00
commit 89be2b9d37
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1
8 changed files with 334 additions and 0 deletions

9
lib/booleans.nix Normal file
View 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";
}