about summary refs log tree commit diff
path: root/lib/tests/modules/define-freeform-keywords-shorthand.nix
blob: 8de1ec6a74752812bd50d8b9b0e58b4355996b0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ config, ... }: {
  class = { "just" = "data"; };
  a = "one";
  b = "two";
  meta = "meta";

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