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

11 lines
166 B
Nix

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