add checkboxes

This commit is contained in:
tristan 2024-01-01 20:27:05 +00:00
parent c29ff7b22e
commit 4f28cbfda7
5 changed files with 60 additions and 35 deletions

View file

@ -3,8 +3,9 @@ let
assert builtins.isString key;
if builtins.isAttrs value then
builtins.trace "Skipping ${key} as it is a set" ""
else if value == "" || value == [ ] then
else if value == "" || value == [ ] || value == false then
""
else if value == true then key
else
''${key}="${toString value}"'';
in rec {