infra/shell.nix
Jonas Chevalier c96e15b14a
niv update ()
* remove vpsadmin

We're not using this at the moment

* niv update
2021-01-03 00:53:49 +00:00

26 lines
593 B
Nix

{ system ? builtins.currentSystem }:
let
pkgs = import ./nix { inherit system; };
in
pkgs.mkShell {
NIX_PATH = "nixpkgs=${toString pkgs.path}";
NIXOPS_DEPLOYMENT = "nix-community-infra";
NIXOPS_STATE = toString ./state/deployment-state.nixops;
buildInputs = with pkgs.nix-community-infra; [
git-crypt
niv
nixops
terraform
];
# 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)
'';
}