electrs.enable: use mkEnableOption

This commit is contained in:
Erik Arvstedt 2020-03-04 18:08:59 +01:00
parent b75b2a1626
commit 48be5a79fa
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -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";