infra/shell.nix

37 lines
651 B
Nix
Raw Normal View History

2022-04-10 20:57:52 +02:00
{ pkgs ? import <nixpkgs> {}
, sops-import-keys-hook
}:
2022-04-10 20:57:52 +02:00
with pkgs;
mkShell {
2021-09-29 19:09:35 +02:00
sopsPGPKeyDirs = [
"./keys"
];
2022-04-10 20:57:52 +02:00
buildInputs = with pkgs; [
git-crypt
terraform
2022-04-10 20:57:52 +02:00
(terraform.withPlugins (
p: [
p.cloudflare
p.null
p.external
]
))
2021-09-25 22:35:51 +02:00
sops
2022-04-10 20:57:52 +02:00
python3.pkgs.invoke
2021-10-21 11:09:52 +02:00
rsync
2021-09-29 19:09:35 +02:00
2022-04-10 20:57:52 +02:00
sops-import-keys-hook
];
2020-01-12 19:32:14 +01:00
# terraform cloud without the remote execution part
TF_FORCE_LOCAL_BACKEND = "1";
TF_CLI_CONFIG_FILE = toString ./secrets/terraformrc;
shellHooks = ''
export CLOUDFLARE_API_TOKEN=$(< ./secrets/cloudflare-api-token)
2021-10-03 14:18:57 +02:00
export NIX_USER_CONF_FILES="$(pwd)/nix/nix.conf";
2020-01-12 19:32:14 +01:00
'';
}