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
1 changed files with 1 additions and 7 deletions

View File

@ -11,13 +11,7 @@ in {
];
options.services.electrs = {
enable = mkOption {
type = types.bool;
default = false;
description = ''
If enabled, the electrs service will be installed.
'';
};
enable = mkEnableOption "electrs";
dataDir = mkOption {
type = types.path;
default = "/var/lib/electrs";