about summary refs log tree commit diff stats
path: root/modules/default.nix
blob: 17780e63f325babb640454b99fff5c440705d631 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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>
{...}: let
  nixLib = import ../lib {};

  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;
}