From d39a253d20d07dfc46080ad0fa1d898a86c1b31c Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Sun, 24 Mar 2019 20:26:07 +0000 Subject: [PATCH 1/2] Fix definition of high memory systems --- modules/electrs.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/electrs.nix b/modules/electrs.nix index 20359b5..0d55f11 100644 --- a/modules/electrs.nix +++ b/modules/electrs.nix @@ -24,7 +24,7 @@ in { type = types.bool; default = false; description = '' - If enabled, the electrs service will sync faster on high-memory systems (≤ 8GB). + If enabled, the electrs service will sync faster on high-memory systems (≥ 8GB). ''; }; }; From 0c83f87233a9b51a0e9d4859fea9206e5e810657 Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Sun, 24 Mar 2019 20:28:33 +0000 Subject: [PATCH 2/2] Don't include electrs in 'all' profile --- README.md | 3 ++- modules/nix-bitcoin.nix | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7908320..4c7b924 100644 --- a/README.md +++ b/README.md @@ -36,12 +36,13 @@ The `nix-bitcoin.nix` module provides the two profiles "minimal" and "all": * adds clightning hidden service * [liquid-daemon](https://github.com/blockstream/liquid) * [lightning charge](https://github.com/ElementsProject/lightning-charge) - * [electrs](https://github.com/romanz/electrs) (currently disabled) * [nanopos](https://github.com/ElementsProject/nanopos) * adds an index page using nginx to display node information and link to nanopos * [spark-wallet](https://github.com/shesek/spark-wallet) * Notes: run `nodeinfo` to get its onion address and `systemctl status spark-wallet` to get the access key. When entering the onion address on the Android app don't forgot to prepend "http://" +* other + * [electrs](https://github.com/romanz/electrs) can be enabled by setting `services.electrs.enable` in modules `nix-bitcoin.nix` to `true` The data directories of the services can be found in `/var/lib` on the deployed machines. diff --git a/modules/nix-bitcoin.nix b/modules/nix-bitcoin.nix index acdea76..1a19791 100644 --- a/modules/nix-bitcoin.nix +++ b/modules/nix-bitcoin.nix @@ -174,7 +174,7 @@ in { }]; version = 3; }; - services.electrs.enable = cfg.modules == "all"; + services.electrs.enable = false; services.electrs.high-memory = false; services.tor.hiddenServices.electrs = { map = [{