summary refs log tree commit diff stats
path: root/modules/default.nix
blob: 61d259d15262223088f0470bd317f12c130be15f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{nixLib, ...}: let
  files =
    builtins.attrValues
    (nixLib.mkByName {
      baseDirectory = ./by-name;
      fileName = "module.nix";

      # We only want the base paths.
      finalizeFunction = name: value: value;

      # TODO: Re-activate, when/if most modules have tests.  <2024-11-23>
      # coImportsNameFunction = {
      #   shard,
      #   name,
      # }:
      #   ../tests/by-name + "/${shard}" + "/${name}" + "/test.nix";
      # coImportsWarnMessageObject = "test";
    });
in {
  imports = files;
}