summaryrefslogtreecommitdiffstats
path: root/lib/tests/modules/declare-attrList-type-merge.nix
blob: 482a90e90954a477bad5198b756ff94afca85bef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Test that attrListOf does not support type merging:
# two declarations of the same option should fail.
{ lib, ... }:
let
  inherit (lib) mkOption types;
in
{
  imports = [
    { options.merged = mkOption { type = types.attrListOf types.str; }; }
    { options.merged = mkOption { type = types.attrListOf types.str; }; }
  ];
}