core/lib/tests/modules/declare-variants.nix
2024-06-30 09:16:52 +01:00

11 lines
166 B
Nix

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