1{ lib, ... }:
2let
3 inherit (lib) types mkOption;
4in
5{
6 imports = [
7 (
8 { config, ... }:
9 {
10 options = {
11 meta.foo = mkOption {
12 type = types.listOf types.str;
13 };
14 result = mkOption { default = lib.concatStringsSep " " config.meta.foo; };
15 };
16 }
17 )
18 {
19 meta.foo = [
20 "one"
21 "two"
22 ];
23 }
24 ];
25}