lib/modules: Simplify inherits

wip/yesman
Robert Hensing 4 years ago
parent 9a4bed1a80
commit f8ab5fcd8d
  1. 66
      lib/modules.nix

@ -1,53 +1,51 @@
{ lib }:
let
inherit (lib.attrsets)
mapAttrsRecursiveCond
;
inherit (lib.lists)
any all concatLists concatMap
count filter findFirst foldl foldl'
head imap1 length optional
reverseList sort
;
inherit (lib.options)
isOption
mkOption
showDefs
showFiles
showOption
unknownModule
;
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
min
optional
optionalAttrs
optionalString
recursiveUpdate
reverseList sort
setAttrByPath
toList
;
inherit (lib.types)
types
;
inherit (lib.trivial)
flip
id
isBool
isFunction
isString
min
warn
;
inherit (lib.strings)
optionalString
;
inherit (lib)
elem
isAttrs
inherit (lib.options)
isOption
mkOption
showDefs
showFiles
showOption
unknownModule
;
in

Loading…
Cancel
Save