1
Fork 0
nixos-system-config/lib/fs.nix

11 lines
175 B
Nix
Raw Normal View History

{ lib }:
{
getDirsInDir =
path: let
dirs = builtins.readDir path;
in
builtins.filter (name: dirs.${name} == "directory") (builtins.attrNames dirs);
}