mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-30 03:32:05 +03:00
19 lines
637 B
Nix
19 lines
637 B
Nix
let
|
|
secrets = import ./secrets/secrets.nix;
|
|
in
|
|
{
|
|
bitcoin-node =
|
|
{ config, pkgs, ... }:
|
|
{ deployment.targetEnv = "virtualbox";
|
|
deployment.virtualbox.memorySize = 2048; # megabytes
|
|
deployment.virtualbox.vcpu = 2; # number of cpus
|
|
deployment.virtualbox.headless = true;
|
|
|
|
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";
|
|
};
|
|
}
|