helpers/mkPlugin: remove useless bool conversion

This commit is contained in:
Gaetan Lepage 2024-01-08 14:31:26 +01:00 committed by Gaétan Lepage
parent e3ef5dae2b
commit 22fb5df657

View file

@ -386,23 +386,13 @@ with lib; rec {
}; };
}; };
globalVal = val:
if builtins.isBool val
then
(
if !val
then 0
else 1
)
else val;
mkDefaultOpt = { mkDefaultOpt = {
type, type,
global, global,
description ? null, description ? null,
example ? null, example ? null,
default ? null, default ? null,
value ? v: (globalVal v), value ? v: v,
... ...
}: { }: {
option = mkOption { option = mkOption {