10 lines
301 B
Nix
10 lines
301 B
Nix
|
{ config, pkgs, lib, ... }:
|
||
|
let
|
||
|
to-import = name: value: ./. + ("/" + name);
|
||
|
filter-users = key: val: val == "directory" && lib.pathExists "${./.}${key}/default.nix";
|
||
|
imports = lib.mapAttrsToList to-import (lib.filterAttrs filter-users (builtins.readDir ./.));
|
||
|
in
|
||
|
{
|
||
|
inherit imports;
|
||
|
}
|