2021-03-08 14:11:13 +00:00
|
|
|
# This is an example network definition for deploying a nix-bitcoin node via NixOps.
|
|
|
|
# NixOps deployment is currently untested.
|
|
|
|
|
2019-11-27 13:04:26 +00:00
|
|
|
{
|
2021-03-08 14:11:13 +00:00
|
|
|
network.description = "Bitcoin node";
|
2018-11-13 23:44:54 +00:00
|
|
|
|
2020-02-26 16:11:19 +00:00
|
|
|
bitcoin-node = { config, pkgs, lib, ... }: {
|
|
|
|
imports = [
|
|
|
|
../configuration.nix
|
|
|
|
<nix-bitcoin/modules/deployment/nixops.nix>
|
|
|
|
];
|
|
|
|
|
|
|
|
nix-bitcoin.deployment.secretsDir = toString ../secrets;
|
2021-03-08 14:11:13 +00:00
|
|
|
|
|
|
|
#FIXME:
|
|
|
|
# Set `deployment.*` options like
|
|
|
|
# deployment.targetHost = "<address_or_hostname>";
|
2020-02-26 16:11:19 +00:00
|
|
|
};
|
2018-11-13 23:44:54 +00:00
|
|
|
}
|