about summary refs log tree commit diff
path: root/lib/tests/modules/import-configuration.nix
blob: a2a32bbee4caf00fff9091e619dbe52abc31365c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{ lib, ... }:
let
  myconf = lib.evalModules { modules = [ { } ]; };
in
{
  imports = [
    # We can't do this. A configuration is not equal to its set of a modules.
    # Equating those would lead to a mess, as specialArgs, anonymous modules
    # that can't be deduplicated, and possibly more come into play.
    myconf
  ];
}