mirror of
https://github.com/NixOS/nix
synced 2025-07-07 22:33:57 +02:00
Merge branch 'attrPaths' of https://github.com/NinjaTrappeur/nix
This commit is contained in:
commit
9eaebbf575
7 changed files with 46 additions and 3 deletions
4
tests/lang/parse-fail-mixed-nested-attrs1.nix
Normal file
4
tests/lang/parse-fail-mixed-nested-attrs1.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
x.z = 3;
|
||||
x = { y = 3; z = 3; };
|
||||
}
|
4
tests/lang/parse-fail-mixed-nested-attrs2.nix
Normal file
4
tests/lang/parse-fail-mixed-nested-attrs2.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
x.y.y = 3;
|
||||
x = { y.y= 3; z = 3; };
|
||||
}
|
4
tests/lang/parse-okay-mixed-nested-attrs-1.nix
Normal file
4
tests/lang/parse-okay-mixed-nested-attrs-1.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
x = { y = 3; z = 3; };
|
||||
x.q = 3;
|
||||
}
|
4
tests/lang/parse-okay-mixed-nested-attrs-2.nix
Normal file
4
tests/lang/parse-okay-mixed-nested-attrs-2.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
x.q = 3;
|
||||
x = { y = 3; z = 3; };
|
||||
}
|
7
tests/lang/parse-okay-mixed-nested-attrs-3.nix
Normal file
7
tests/lang/parse-okay-mixed-nested-attrs-3.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
services.ssh.enable = true;
|
||||
services.ssh = { port = 123; };
|
||||
services = {
|
||||
httpd.enable = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue