Gitiles
Code Review
Sign In
git.clicks.codes
/
Minion
/
NixFiles
/
6a2b11ad54e78835836c7f0db2babc28dd0c11e8
/
.
/
utils
/
dirsInWithName.nix
blob: 3da40174f1803c58a505034399abb8a4e3822816 [
file
] [
log
] [
blame
]
# Modified from http://chriswarbo.net/projects/nixos/useful_hacks.html
lib
:
dir
:
map
(
name
:
{
inherit name
;
path
=
dir
+
"/${name}"
;
})
(
lib
.
attrNames
(
lib
.
filterAttrs
(
_
:
type
:
type
==
"directory"
)
(
builtins
.
readDir dir
)))