at 18.09-beta 340 B view raw
1{ config, lib, ... }: 2 3{ 4 options = { 5 loaOfInt = lib.mkOption { 6 type = lib.types.loaOf lib.types.int; 7 }; 8 9 result = lib.mkOption { 10 type = lib.types.str; 11 }; 12 }; 13 14 config = { 15 loaOfInt = lib.mkMerge (map lib.singleton [ 1 2 3 4 5 6 7 8 9 10 ]); 16 17 result = toString (lib.attrValues config.loaOfInt); 18 }; 19}