lib/modules: Simplify inherits
This commit is contained in:
parent
9a4bed1a80
commit
f8ab5fcd8d
|
@ -1,14 +1,43 @@
|
||||||
{ lib }:
|
{ lib }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib.attrsets)
|
inherit (lib)
|
||||||
|
all
|
||||||
|
any
|
||||||
|
attrByPath
|
||||||
|
attrNames
|
||||||
|
catAttrs
|
||||||
|
concatLists
|
||||||
|
concatMap
|
||||||
|
count
|
||||||
|
elem
|
||||||
|
filter
|
||||||
|
findFirst
|
||||||
|
flip
|
||||||
|
foldl
|
||||||
|
foldl'
|
||||||
|
getAttrFromPath
|
||||||
|
head
|
||||||
|
id
|
||||||
|
imap1
|
||||||
|
isAttrs
|
||||||
|
isBool
|
||||||
|
isFunction
|
||||||
|
isString
|
||||||
|
length
|
||||||
|
mapAttrs
|
||||||
|
mapAttrsToList
|
||||||
mapAttrsRecursiveCond
|
mapAttrsRecursiveCond
|
||||||
;
|
min
|
||||||
inherit (lib.lists)
|
optional
|
||||||
any all concatLists concatMap
|
optionalAttrs
|
||||||
count filter findFirst foldl foldl'
|
optionalString
|
||||||
head imap1 length optional
|
recursiveUpdate
|
||||||
reverseList sort
|
reverseList sort
|
||||||
|
setAttrByPath
|
||||||
|
toList
|
||||||
|
types
|
||||||
|
warn
|
||||||
;
|
;
|
||||||
inherit (lib.options)
|
inherit (lib.options)
|
||||||
isOption
|
isOption
|
||||||
|
@ -18,37 +47,6 @@ let
|
||||||
showOption
|
showOption
|
||||||
unknownModule
|
unknownModule
|
||||||
;
|
;
|
||||||
inherit (lib.attrsets)
|
|
||||||
attrByPath
|
|
||||||
attrNames
|
|
||||||
catAttrs
|
|
||||||
getAttrFromPath
|
|
||||||
mapAttrs
|
|
||||||
mapAttrsToList
|
|
||||||
optionalAttrs
|
|
||||||
recursiveUpdate
|
|
||||||
setAttrByPath
|
|
||||||
toList
|
|
||||||
;
|
|
||||||
inherit (lib.types)
|
|
||||||
types
|
|
||||||
;
|
|
||||||
inherit (lib.trivial)
|
|
||||||
flip
|
|
||||||
id
|
|
||||||
isBool
|
|
||||||
isFunction
|
|
||||||
isString
|
|
||||||
min
|
|
||||||
warn
|
|
||||||
;
|
|
||||||
inherit (lib.strings)
|
|
||||||
optionalString
|
|
||||||
;
|
|
||||||
inherit (lib)
|
|
||||||
elem
|
|
||||||
isAttrs
|
|
||||||
;
|
|
||||||
in
|
in
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
|
|
Loading…
Reference in New Issue