electrs.enable: use mkEnableOption
This commit is contained in:
parent
b75b2a1626
commit
48be5a79fa
@ -11,13 +11,7 @@ in {
|
|||||||
];
|
];
|
||||||
|
|
||||||
options.services.electrs = {
|
options.services.electrs = {
|
||||||
enable = mkOption {
|
enable = mkEnableOption "electrs";
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = ''
|
|
||||||
If enabled, the electrs service will be installed.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
dataDir = mkOption {
|
dataDir = mkOption {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
default = "/var/lib/electrs";
|
default = "/var/lib/electrs";
|
||||||
|
Loading…
Reference in New Issue
Block a user