infra/shell.nix

28 lines
610 B
Nix
Raw Normal View History

{ system ? builtins.currentSystem }:
let
pkgs = import ./nix { inherit system; };
2020-01-22 12:37:13 +01:00
in
pkgs.mkShell {
2020-01-22 12:37:13 +01:00
NIX_PATH = "nixpkgs=${toString pkgs.path}";
2020-01-22 12:37:13 +01:00
NIXOPS_DEPLOYMENT = "nix-community-infra";
NIXOPS_STATE = toString ./state/deployment-state.nixops;
buildInputs = with pkgs.nix-community-infra; [
git-crypt
niv
2021-03-04 06:53:33 +01:00
nixopsUnstable
terraform
2021-09-25 22:35:51 +02:00
sops
];
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)
'';
}