diff --git a/example/example.dhall b/example/example.dhall index 23a57c2..75bcded 100644 --- a/example/example.dhall +++ b/example/example.dhall @@ -4,4 +4,11 @@ in { username = name , home = "/home/${name}" , admins = [ name, "admin" ] , email = "${name}@example.com" + , address = + { street = "123" + , country = "USA" + , state = "MT" + , zip = "12345" + , phone = "123-456-7890" + } } diff --git a/example/example.json b/example/example.json index c9990b9..0b7f33e 100644 --- a/example/example.json +++ b/example/example.json @@ -1,4 +1,11 @@ { + "address": { + "country": "USA", + "phone": "123-456-7890", + "state": "MT", + "street": "123", + "zip": "12345" + }, "admins": [ "jolheiser", "admin" diff --git a/example/example.jsonc b/example/example.jsonc index f0a8b52..90b502b 100644 --- a/example/example.jsonc +++ b/example/example.jsonc @@ -1,10 +1,18 @@ { + // User's address + "address": { + "country": "USA", + "phone": "123-456-7890", + "state": "MT", + "street": "123", + "zip": "12345" + }, + // Admins for foobar "admins": [ "jolheiser", "admin" ], "email": "jolheiser@example.com", "home": "/home/jolheiser", - // The user! - "username": "jolheiser", + "username": "jolheiser" // User's name } diff --git a/example/example.kdl b/example/example.kdl index 361e4b3..a33aa4d 100644 --- a/example/example.kdl +++ b/example/example.kdl @@ -1,4 +1,5 @@ +home "/home/jolheiser" admins "jolheiser" "admin" email "jolheiser@example.com" +address state="MT" zip="12345" phone="123-456-7890" street="123" country="USA" username "jolheiser" -home "/home/jolheiser" diff --git a/example/example.nix b/example/example.nix index 146bb8f..adda7c4 100644 --- a/example/example.nix +++ b/example/example.nix @@ -1 +1 @@ -{ admins = [ "jolheiser" "admin" ]; email = "jolheiser@example.com"; home = "/home/jolheiser"; username = "jolheiser"; } +{ address = { country = "USA"; phone = "123-456-7890"; state = "MT"; street = "123"; zip = "12345"; }; admins = [ "jolheiser" "admin" ]; email = "jolheiser@example.com"; home = "/home/jolheiser"; username = "jolheiser"; } diff --git a/example/example.toml b/example/example.toml index 21ef578..ce62644 100644 --- a/example/example.toml +++ b/example/example.toml @@ -2,3 +2,10 @@ admins = ['jolheiser', 'admin'] email = 'jolheiser@example.com' home = '/home/jolheiser' username = 'jolheiser' + +[address] +country = 'USA' +phone = '123-456-7890' +state = 'MT' +street = '123' +zip = '12345' diff --git a/example/example.yaml b/example/example.yaml index 582f0ed..86163b2 100644 --- a/example/example.yaml +++ b/example/example.yaml @@ -1,3 +1,9 @@ +address: + country: USA + phone: 123-456-7890 + state: MT + street: "123" + zip: "12345" admins: - jolheiser - admin