diff options
Diffstat (limited to 'lib/options.nix')
-rw-r--r-- | lib/options.nix | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/options.nix b/lib/options.nix index 9e0ea010bda71..97bb2e77176c3 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -1,11 +1,15 @@ # Nixpkgs/NixOS option handling. { lib }: -with lib.trivial; -with lib.lists; -with lib.attrsets; -with lib.strings; - +let + inherit (lib) + isAttrs isBool isDerivation isFunction isInt isList isString + all collect concatMap concatLists elemAt filter foldl' head length mapAttrs optionals optional take + ; + inherit (lib.attrsets) optionalAttrs; + inherit (lib.strings) concatMapStrings concatStringsSep; + inherit (lib.types) mkOptionType; +in rec { /* Returns true when the given argument is an option |