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