diff options
Diffstat (limited to 'test/testdata/eval-okay-attrs3.nix')
-rw-r--r-- | test/testdata/eval-okay-attrs3.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/testdata/eval-okay-attrs3.nix b/test/testdata/eval-okay-attrs3.nix new file mode 100644 index 0000000..f29de11 --- /dev/null +++ b/test/testdata/eval-okay-attrs3.nix | |||
@@ -0,0 +1,22 @@ | |||
1 | let | ||
2 | |||
3 | config = | ||
4 | { | ||
5 | services.sshd.enable = true; | ||
6 | services.sshd.port = 22; | ||
7 | services.httpd.port = 80; | ||
8 | hostName = "itchy"; | ||
9 | a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z = "x"; | ||
10 | foo = { | ||
11 | a = "a"; | ||
12 | b.c = "c"; | ||
13 | }; | ||
14 | }; | ||
15 | |||
16 | in | ||
17 | if config.services.sshd.enable | ||
18 | then "foo ${toString config.services.sshd.port} ${toString config.services.httpd.port} ${config.hostName}" | ||
19 | + "${config.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z}" | ||
20 | + "${config.foo.a}" | ||
21 | + "${config.foo.b.c}" | ||
22 | else "bar" | ||