nixpkgs/lib/tests/modules/declare-variants.nix
2021-11-22 16:50:50 +01:00

10 lines
163 B
Nix

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