nixos-config/terranix/graylog/shell.nix
Ingolf Wagner 5f373a2148
fiddeling
2021-07-13 23:16:00 +02:00

14 lines
351 B
Nix

{ pkgs ? import <nixpkgs> { } }:
let pass_access_token_path = "development/graylog/access_token";
in pkgs.mkShell {
buildInputs = with pkgs; [
terranix
(writers.writeBashBin "terraform" ''
export GRAYLOG_AUTH_NAME=`${pkgs.pass}/bin/pass show ${pass_access_token_path}`
${pkgs.terraform_0_15}/bin/terraform "$@"
'')
];
}