about summary refs log tree commit diff stats
path: root/modules/default.nix
blob: 1df511a1d7dcf3607b511706479fcf40d716d505 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# NOTE: This file **must** not depend on `pkgs`. This is because `pkgs` is defined in a
# module imported by it, and thus would require infinite recursion.  <2024-10-18>
{nixLib, ...}: let
  files =
    builtins.attrValues
    (nixLib.mkByName {
      baseDirectory = ./by-name;
      fileName = "module.nix";
      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;
}