summaryrefslogtreecommitdiff
path: root/util/importAll.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-12-27 01:21:34 -0600
committerAlejandro Soto <alejandro@34project.org>2022-12-27 01:21:34 -0600
commitccbd359a8f9089a1e7a9566fdca62e26a2bb447c (patch)
treee248f3a9f848187e80d45baf2bd43ad465733fb0 /util/importAll.nix
parent61d433c8e7cc17d5b921329fca9baf7c3d528ade (diff)
flake: enforce nixpkgs-fmt
Diffstat (limited to 'util/importAll.nix')
-rw-r--r--util/importAll.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/importAll.nix b/util/importAll.nix
index 678cf06..cc18640 100644
--- a/util/importAll.nix
+++ b/util/importAll.nix
@@ -1,5 +1,5 @@
lib:
-{ root, exclude ? [] }:
+{ root, exclude ? [ ] }:
with builtins; with lib;
# http://chriswarbo.net/projects/nixos/useful_hacks.html
@@ -7,11 +7,11 @@ let
basename = removeSuffix ".nix";
isMatch = name: type: (hasSuffix ".nix" name || type == "directory")
- && ! elem name (map basename exclude);
+ && ! elem name (map basename exclude);
entry = name: _: {
name = basename name;
value = import (root + "/${name}");
};
in
- mapAttrs' entry (filterAttrs isMatch (readDir root))
+mapAttrs' entry (filterAttrs isMatch (readDir root))