1

use mkEnableOpt instead of mkBoolOpt

This commit is contained in:
2022-08-10 12:56:47 +02:00
parent d437f67a26
commit 33dc750d4c
4 changed files with 26 additions and 22 deletions

View File

@ -9,6 +9,9 @@ rec {
description = desc;
};
# Alias for consistency
mkEnableOpt = lib.mkEnableOption;
# Like mkIf but the predicate is inverted
mkElse = pred: do:
(lib.mkIf (!pred) do);