core/lib/tests/modules/declare-variants.nix

11 lines
166 B
Nix
Raw Normal View History

2024-05-01 22:14:04 +00:00
{ lib, moduleType, ... }:
2024-06-30 08:16:52 +00:00
let
inherit (lib) mkOption types;
2024-05-01 22:14:04 +00:00
in
{
options.variants = mkOption {
type = types.lazyAttrsOf moduleType;
2024-06-30 08:16:52 +00:00
default = { };
2024-05-01 22:14:04 +00:00
};
}