Inventory/interface: add enable flag for service instances
This commit is contained in:
@@ -184,6 +184,19 @@ in
|
|||||||
# instance name
|
# instance name
|
||||||
{ name, ... }:
|
{ name, ... }:
|
||||||
{
|
{
|
||||||
|
options.enabled = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = true;
|
||||||
|
description = ''
|
||||||
|
Enable or disable the complete service.
|
||||||
|
|
||||||
|
If the service is disabled, it will not be added to any machine.
|
||||||
|
|
||||||
|
!!! Note
|
||||||
|
This flag is primarily used to temporarily disable a service.
|
||||||
|
I.e. A 'backup service' without any 'server' might be incomplete and would cause failure if enabled.
|
||||||
|
'';
|
||||||
|
};
|
||||||
options.meta = metaOptionsWith name;
|
options.meta = metaOptionsWith name;
|
||||||
options.extraModules = extraModulesOption;
|
options.extraModules = extraModulesOption;
|
||||||
options.config = moduleConfig // {
|
options.config = moduleConfig // {
|
||||||
|
|||||||
Reference in New Issue
Block a user