Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add ASmap process via extraSources #738

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,3 +262,19 @@ following default values:
- If you're using the krops deployment method: `/var/src/secrets`

- Otherwise: `/etc/nix-bitcoin-secrets`

## ASmap

If you choose to provide an [ASmap](https://asmap.org) to bitcoind via the `-asmap` [option](https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.20.0.md#new-settings), this file will need to be copied from your local machine, and therefore included in `krops/deploy.nix` `extraSources` attribute set. For an existing `latest_asmap.dat` file in the current directory, for example:
```
extraSources = {
"hardware-configuration.nix".file = toString ../hardware-configuration.nix;
"latest_asmap.dat".file = toString ../latest_asmap.dat;
};
```
The file will be copied over, and end up in the destination `/var/src` folder, so you must enable ASmap by passing the destination file path to `services.bitcoind.extraConfig`:
```
extraConfig = ''
asmap=/var/src/latest_asmap.dat
'';
```