hosts/main: add cryptocurrency module
this is one of many services that I had hosted using docker
This commit is contained in:
parent
909955098d
commit
186affb97d
2 changed files with 59 additions and 0 deletions
57
hosts/main/cryptocurrency.nix
Normal file
57
hosts/main/cryptocurrency.nix
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
{
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
"${inputs.nix-bitcoin}/modules/modules.nix"
|
||||||
|
];
|
||||||
|
|
||||||
|
config = {
|
||||||
|
|
||||||
|
services.bitcoind = {
|
||||||
|
enable = true;
|
||||||
|
listen = true;
|
||||||
|
txindex = true;
|
||||||
|
disablewallet = true;
|
||||||
|
extraConfig = ''
|
||||||
|
coinstatsindex=1
|
||||||
|
maxmempool=2048
|
||||||
|
persistmempool=1
|
||||||
|
'';
|
||||||
|
tor.proxy = true;
|
||||||
|
rpc.address = "0.0.0.0";
|
||||||
|
rpc.allowip = [
|
||||||
|
"10.0.0.0/8"
|
||||||
|
"172.16.0.0/12"
|
||||||
|
"192.168.0.0/16"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.electrs = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.monero = {
|
||||||
|
enable = true;
|
||||||
|
extraConfig = ''
|
||||||
|
proxy=127.0.0.1:9050
|
||||||
|
igd=disabled
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
services.tor.client.enable = true;
|
||||||
|
|
||||||
|
nix-bitcoin = {
|
||||||
|
onionServices = {
|
||||||
|
bitcoind = {
|
||||||
|
public = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
generateSecrets = true;
|
||||||
|
secretsDir = "/var/nix-bitcoin";
|
||||||
|
configVersion = "0.0.121";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -26,6 +26,8 @@
|
||||||
../../nix-os/gnupg.nix
|
../../nix-os/gnupg.nix
|
||||||
|
|
||||||
"${inputs.nixos-vscode-server}"
|
"${inputs.nixos-vscode-server}"
|
||||||
|
|
||||||
|
./cryptocurrency.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue