caem
1ea937f884
- Added library for common functions - Moved machines/ to hosts/ - Automise adding new hosts to the flake
10 lines
175 B
Nix
10 lines
175 B
Nix
{ lib }:
|
|
|
|
{
|
|
getDirsInDir =
|
|
path: let
|
|
dirs = builtins.readDir path;
|
|
in
|
|
builtins.filter (name: dirs.${name} == "directory") (builtins.attrNames dirs);
|
|
}
|
|
|