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