infra/shell.nix

38 lines
692 B
Nix
Raw Normal View History

let
2019-12-18 23:28:43 +01:00
sources = import ./nix/sources.nix;
2019-12-18 23:28:43 +01:00
pkgs = import sources.nixpkgs {
2019-08-12 12:16:00 +02:00
config = {};
overlays = [];
};
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 = "./state/deployment-state.nixops";
buildInputs = [
pkgs.git-crypt
2020-01-12 17:09:57 +01:00
pkgs.niv
pkgs.nixops
2020-01-22 12:37:13 +01:00
(
pkgs.terraform.withPlugins (
p: [
p.cloudflare
]
)
)
];
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)
'';
}