2019-01-01 12:17:07 -08:00
|
|
|
let
|
2019-01-26 10:12:08 -08:00
|
|
|
nixpkgs = (import ./pkgs/nixpkgs-pinned.nix).nixpkgs;
|
2019-01-01 12:17:07 -08:00
|
|
|
in
|
|
|
|
with import nixpkgs { };
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "nix-bitcoin-environment";
|
|
|
|
|
2019-11-08 04:24:02 -08:00
|
|
|
nixops19_09 = callPackage ./pkgs/nixops {};
|
2020-01-12 11:52:38 -08:00
|
|
|
make-secrets = callPackage ./pkgs/generate-secrets/update-and-generate.nix {};
|
2019-11-08 04:24:02 -08:00
|
|
|
|
2019-11-27 05:04:31 -08:00
|
|
|
buildInputs = [ nixops19_09 figlet ];
|
2019-01-01 12:17:07 -08:00
|
|
|
|
|
|
|
shellHook = ''
|
2019-01-03 14:02:10 -08:00
|
|
|
export NIX_PATH="nixpkgs=${nixpkgs}:."
|
2019-01-26 05:26:33 -08: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 12:17:07 -08:00
|
|
|
figlet "nix-bitcoin"
|
2020-01-12 11:52:38 -08:00
|
|
|
(mkdir -p secrets; cd secrets; ${make-secrets})
|
2019-01-01 12:17:07 -08:00
|
|
|
'';
|
|
|
|
}
|