2025-02-25 13:03:32 -06:00
|
|
|
{lib, ...}:
|
|
|
|
# Includes all files with .nix suffix in the current directory except default.nix
|
2025-02-24 16:14:45 -06:00
|
|
|
let
|
|
|
|
dir = ./.;
|
2025-02-25 13:03:32 -06:00
|
|
|
files = lib.filterAttrs (
|
|
|
|
name: type:
|
|
|
|
type == "regular" && name != "default.nix" && lib.hasSuffix ".nix" name
|
2025-02-24 16:14:45 -06:00
|
|
|
) (builtins.readDir dir);
|
|
|
|
imports = map (name: "${dir}/${name}") (builtins.attrNames files);
|
|
|
|
in {
|
|
|
|
imports = imports;
|
|
|
|
}
|