0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-19 16:40:32 +03:00
nixpkgs/lib/tests/modules/shorthand-meta.nix

26 lines
399 B
Nix
Raw Normal View History

{ lib, ... }:
let
inherit (lib) types mkOption;
in
{
imports = [
(
{ config, ... }:
{
options = {
meta.foo = mkOption {
type = types.listOf types.str;
};
result = mkOption { default = lib.concatStringsSep " " config.meta.foo; };
};
}
)
{
meta.foo = [
"one"
"two"
];
}
];
}