summary refs log tree commit diff
path: root/lib/tests/modules/declare-variants.nix
blob: 3ed6fa689e21ed4c2ecc1d22c0960ceb86c88c77 (plain) (blame)
1
2
3
4
5
6
7
8
9
{ lib, moduleType, ... }:
let inherit (lib) mkOption types;
in
{
  options.variants = mkOption {
    type = types.lazyAttrsOf moduleType;
    default = {};
  };
}