feat(lib): add function the concatenates paths with a prefix to a list
This commit is contained in:
parent
17ef59c359
commit
3c6700b030
|
@ -19,6 +19,13 @@
|
|||
&& (lib.strings.hasSuffix ".nix" path) # include .nix files
|
||||
)
|
||||
)
|
||||
(builtins.readDir path)));
|
||||
(builtins.readDir path)
|
||||
)
|
||||
);
|
||||
concatPathsWithPrefix = { prefix, path }:
|
||||
builtins.concatLists
|
||||
[
|
||||
(builtins.map (path: "${prefix}/${path}") paths)
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue