3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/lib/tests/modules/declare-variants.nix

10 lines
163 B
Nix
Raw Normal View History

{ lib, moduleType, ... }:
let inherit (lib) mkOption types;
in
{
options.variants = mkOption {
type = types.lazyAttrsOf moduleType;
default = {};
};
}