summaryrefslogtreecommitdiffstats
path: root/lib/tests/modules/declare-variants.nix
blob: 60271faf75d03c2a288995c0259370722b9b24a5 (plain)
1
2
3
4
5
6
7
8
9
10
{ lib, moduleType, ... }:
let
  inherit (lib) mkOption types;
in
{
  options.variants = mkOption {
    type = types.lazyAttrsOf moduleType;
    default = { };
  };
}