core/nodes/1_lib/tests/modules/declare-variants.nix
2024-05-21 23:53:33 -04:00

10 lines
163 B
Nix

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