diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-05-15 22:15:06 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-05-15 22:15:06 +0200 |
commit | 3e5346ccfd542e9abb928a7eca2e831b9c30df2e (patch) | |
tree | e46fc69e1d022554780cedf91d0d55745e5e61e3 /utils/default.nix | |
parent | 989d80d2da3d7a71b1a7af9d6cab9a162ae04229 (diff) | |
download | nixos-3e5346ccfd542e9abb928a7eca2e831b9c30df2e.tar nixos-3e5346ccfd542e9abb928a7eca2e831b9c30df2e.tar.gz nixos-3e5346ccfd542e9abb928a7eca2e831b9c30df2e.tar.bz2 nixos-3e5346ccfd542e9abb928a7eca2e831b9c30df2e.tar.xz nixos-3e5346ccfd542e9abb928a7eca2e831b9c30df2e.zip |
better name nixImport
Diffstat (limited to 'utils/default.nix')
-rw-r--r-- | utils/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/default.nix b/utils/default.nix index d00357af..48add212 100644 --- a/utils/default.nix +++ b/utils/default.nix | |||
@@ -3,7 +3,7 @@ rec { | |||
3 | inherit (builtins) readDir; | 3 | inherit (builtins) readDir; |
4 | inherit (lib) filterAttrs hasSuffix removeSuffix mapAttrs' nameValuePair isFunction functionArgs setFunctionArgs id; | 4 | inherit (lib) filterAttrs hasSuffix removeSuffix mapAttrs' nameValuePair isFunction functionArgs setFunctionArgs id; |
5 | mapFilterAttrs = seive: f: attrs: filterAttrs seive (mapAttrs' f attrs); | 5 | mapFilterAttrs = seive: f: attrs: filterAttrs seive (mapAttrs' f attrs); |
6 | recImport = { dir, _import ? name: _base: import "${toString dir}/${name}" }: | 6 | nixImport = { dir, _import ? name: _base: import "${toString dir}/${name}" }: |
7 | mapFilterAttrs | 7 | mapFilterAttrs |
8 | (_: v: v != null) | 8 | (_: v: v != null) |
9 | (n: v: | 9 | (n: v: |