Add liquidd pruning
This commit is contained in:
parent
1927fda514
commit
3c7d0c66fb
@ -25,6 +25,7 @@ in {
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim tmux
|
||||
htop
|
||||
];
|
||||
|
||||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
|
@ -64,6 +64,8 @@ in {
|
||||
chown 'clightning:clightning' '${cfg.dataDir}/config'
|
||||
chmod +w ${cfg.dataDir}/config
|
||||
chmod o-rw ${cfg.dataDir}/config
|
||||
# The RPC socket has to be removed otherwise we might have stale sockets
|
||||
rm -f ${cfg.dataDir}/lightning-rpc
|
||||
echo "bitcoin-rpcpassword=$(cat /secrets/bitcoin-rpcpassword)" >> '${cfg.dataDir}/config'
|
||||
'';
|
||||
serviceConfig =
|
||||
|
@ -64,6 +64,7 @@ in {
|
||||
discover=0
|
||||
'';
|
||||
services.bitcoind.prune = 2000;
|
||||
services.bitcoind.dbCache = 1000;
|
||||
services.tor.hiddenServices.bitcoind = {
|
||||
map = [{
|
||||
port = config.services.bitcoind.port;
|
||||
@ -119,6 +120,7 @@ in {
|
||||
|
||||
services.liquidd.enable = cfg.modules == "all";
|
||||
services.liquidd.rpcuser = "liquidrpc";
|
||||
services.liquidd.prune = 1000;
|
||||
|
||||
services.lightning-charge.enable = cfg.modules == "all";
|
||||
services.nanopos.enable = cfg.modules == "all";
|
||||
|
@ -35,7 +35,7 @@ in
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
deployment.targetEnv = "virtualbox";
|
||||
deployment.virtualbox.memorySize = 2048; # megabytes
|
||||
deployment.virtualbox.memorySize = 4096; # megabytes
|
||||
deployment.virtualbox.vcpu = 2; # number of cpus
|
||||
deployment.virtualbox.headless = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user