fork/home-manager
git clone https://git.julia.blue/fork/home-manager
fce9dbfe
master
1{ config , lib , ...} : 2 3{ 4home . file . "result.txt" . text = lib . hm . generators . toKDL { } { 5a = 1 ; 6b = "string" ; 7c = '' 8multiline string 9with special characters: 10\t \n \" " 11'' ; 12unsafeString = " \" \n " ; 13flatItems = [ 1 2 "asdf" true null ]; 14bigFlatItems = [ 1523847590283751 161.239 17'' 18multiline " " " 19string 20'' 21null 22]; 23nested = [ [ 1 2 ] [ true false ] [ ] [ null ] ]; 24extraAttrs = { 25_args = [ 2 true ]; 26_props = { 27arg1 = 1 ; 28arg2 = false ; 29}; 30nested = { 31a = 1 ; 32b = null ; 33}; 34}; 35listInAttrsInList = { 36list1 = [ 37{ a = 1 ; } 38{ b = true ; } 39{ 40c = null ; 41d = [{ e = "asdfadfasdfasdf" ; }]; 42} 43]; 44list2 = [{ a = 8 ; }]; 45}; 46}; 47 48nmt . script = '' 49assertFileContent \ 50home-files/result.txt \ 51${ ./tokdl-result.txt } 52'' ; 53}