summaryrefslogtreecommitdiffstats
path: root/lib/tests/modules/define-freeform-keywords-shorthand.nix
blob: 9d0e8c871b4e923d96983eb929c1988ccbf4909a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ config, ... }:
{
  class = {
    "just" = "data";
  };
  a = "one";
  b = "two";
  meta = "meta";

  _module.args.result =
    let
      r = removeAttrs config [ "_module" ];
    in
    builtins.trace (builtins.deepSeq r r) (
      r == {
        a = "one";
        b = "two";
        class = {
          "just" = "data";
        };
        meta = "meta";
      }
    );
}