2021-07-13 23:16:00 +02:00
|
|
|
{ pkgs ? import <nixpkgs> { } }:
|
|
|
|
let pass_access_token_path = "development/graylog/access_token";
|
2021-07-13 22:33:04 +02:00
|
|
|
|
2021-07-13 23:16:00 +02:00
|
|
|
in pkgs.mkShell {
|
2021-07-13 22:33:04 +02:00
|
|
|
|
|
|
|
buildInputs = with pkgs; [
|
2021-07-14 13:09:08 +02:00
|
|
|
git-crypt
|
2021-07-13 22:33:04 +02:00
|
|
|
terranix
|
|
|
|
(writers.writeBashBin "terraform" ''
|
|
|
|
export GRAYLOG_AUTH_NAME=`${pkgs.pass}/bin/pass show ${pass_access_token_path}`
|
|
|
|
${pkgs.terraform_0_15}/bin/terraform "$@"
|
|
|
|
'')
|
|
|
|
];
|
|
|
|
|
|
|
|
}
|