forked from mirrors/nixpkgs
quagga module: Use a deep merge via imports instead of the shallow merge
The deep merge caused all the options to be unset when generating docs, unless quagga was enabled. Using imports, instead, properly allows the documentation to be generated.
This commit is contained in:
parent
62f47c56b7
commit
078925c954
|
@ -95,26 +95,25 @@ in
|
||||||
{
|
{
|
||||||
|
|
||||||
###### interface
|
###### interface
|
||||||
|
imports = [
|
||||||
options.services.quagga =
|
|
||||||
{
|
{
|
||||||
|
options.services.quagga = {
|
||||||
|
zebra = (serviceOptions "zebra") // {
|
||||||
|
enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = any isEnabled services;
|
||||||
|
description = ''
|
||||||
|
Whether to enable the Zebra routing manager.
|
||||||
|
|
||||||
zebra = (serviceOptions "zebra") // {
|
The Zebra routing manager is automatically enabled
|
||||||
|
if any routing protocols are configured.
|
||||||
enable = mkOption {
|
'';
|
||||||
type = types.bool;
|
};
|
||||||
default = any isEnabled services;
|
|
||||||
description = ''
|
|
||||||
Whether to enable the Zebra routing manager.
|
|
||||||
|
|
||||||
The Zebra routing manager is automatically enabled
|
|
||||||
if any routing protocols are configured.
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
}
|
||||||
} // (genAttrs services serviceOptions);
|
{ options.services.quagga = (genAttrs services serviceOptions); }
|
||||||
|
];
|
||||||
|
|
||||||
###### implementation
|
###### implementation
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue