2019-01-01 20:17:07 +00:00
|
|
|
let
|
2019-01-26 18:12:08 +00:00
|
|
|
nixpkgs = (import ./pkgs/nixpkgs-pinned.nix).nixpkgs;
|
2019-01-01 20:17:07 +00:00
|
|
|
in
|
|
|
|
with import nixpkgs { };
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "nix-bitcoin-environment";
|
|
|
|
|
|
|
|
buildInputs = [ pkgs.nixops pkgs.figlet pkgs.apg ];
|
|
|
|
|
|
|
|
shellHook = ''
|
2019-01-03 22:02:10 +00:00
|
|
|
export NIX_PATH="nixpkgs=${nixpkgs}:."
|
2019-01-26 13:26:33 +00:00
|
|
|
# ssh-agent and nixops don't play well together (see
|
|
|
|
# https://github.com/NixOS/nixops/issues/256). I'm getting `Received disconnect
|
|
|
|
# from 10.1.1.200 port 22:2: Too many authentication failures` if I have a few
|
|
|
|
# keys already added to my ssh-agent.
|
|
|
|
export SSH_AUTH_SOCK=""
|
2019-01-01 20:17:07 +00:00
|
|
|
figlet "nix-bitcoin"
|
|
|
|
./secrets/generate_secrets.sh
|
|
|
|
'';
|
|
|
|
}
|