2018-11-28 14:58:36 -08:00
|
|
|
let
|
|
|
|
secrets = import ./secrets/secrets.nix;
|
|
|
|
in
|
2018-11-13 15:44:54 -08:00
|
|
|
{
|
|
|
|
bitcoin-node =
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{ deployment.targetEnv = "virtualbox";
|
|
|
|
deployment.virtualbox.memorySize = 2048; # megabytes
|
|
|
|
deployment.virtualbox.vcpu = 2; # number of cpus
|
|
|
|
deployment.virtualbox.headless = true;
|
2018-11-28 14:58:36 -08:00
|
|
|
|
|
|
|
deployment.keys.bitcoin-rpcpassword.text = secrets.bitcoinrpcpassword;
|
|
|
|
deployment.keys.bitcoin-rpcpassword.destDir = "/secrets/";
|
|
|
|
deployment.keys.bitcoin-rpcpassword.user = "bitcoin";
|
|
|
|
deployment.keys.bitcoin-rpcpassword.group = "bitcoinrpc";
|
|
|
|
deployment.keys.bitcoin-rpcpassword.permissions = "0440";
|
2018-11-13 15:44:54 -08:00
|
|
|
};
|
|
|
|
}
|