* Print a sensible error message if there are multiple declarations
for an option. * Removed double declaration for services.xserver.layout. svn path=/nixos/trunk/; revision=9398
This commit is contained in:
parent
33aa5d2d74
commit
f402fd73f2
|
@ -20,6 +20,7 @@ rec {
|
||||||
decl =
|
decl =
|
||||||
lib.findSingle (decl: lib.eqLists decl.name name)
|
lib.findSingle (decl: lib.eqLists decl.name name)
|
||||||
(abort ("Undeclared option `" + printName name + "'."))
|
(abort ("Undeclared option `" + printName name + "'."))
|
||||||
|
(abort ("Multiple declarations for option `" + printName name + "'."))
|
||||||
declarations;
|
declarations;
|
||||||
default =
|
default =
|
||||||
if !decl ? default
|
if !decl ? default
|
||||||
|
|
|
@ -720,14 +720,6 @@
|
||||||
";
|
";
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
|
||||||
name = ["services" "xserver" "layout"];
|
|
||||||
default = "us";
|
|
||||||
description ="
|
|
||||||
Keyboard layout.
|
|
||||||
";
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
{
|
||||||
name = ["services" "xserver" "useInternalAGPGART"];
|
name = ["services" "xserver" "useInternalAGPGART"];
|
||||||
default = "";
|
default = "";
|
||||||
|
|
Loading…
Reference in New Issue