electrs.enable: use mkEnableOption

This commit is contained in:
Erik Arvstedt
2020-03-04 18:09:51 +01:00
parent b75b2a1626
commit 48be5a79fa
+1 -7
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";