From 4b95cd05aab92245505731741381612b5fd0d27b Mon Sep 17 00:00:00 2001 From: elyth Date: Thu, 23 Jan 2025 17:24:40 +0100 Subject: [PATCH] :bulb: (shells): add k8s default shell --- shells/k8s/shell.nix | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 shells/k8s/shell.nix diff --git a/shells/k8s/shell.nix b/shells/k8s/shell.nix new file mode 100644 index 00000000..cc3fac8b --- /dev/null +++ b/shells/k8s/shell.nix @@ -0,0 +1,38 @@ +with import { config.allowUnfree = true; }; +let + pythonPackages = pkgs.python310Packages; + inputs = [ + argo + jq + yq + teleport + terragrunt + terraform + vault-bin + kubelogin + + kubectl + + azure-cli + + pythonPackages.python + pythonPackages.venvShellHook + pythonPackages.numpy + pythonPackages.boto3 + pythonPackages.requests + pythonPackages.magic + go # needed for gojsonnet + ]; +in +pkgs.mkShell { + name = "rfPythonEnv"; + venvDir = "./.venv"; + buildInputs = inputs; + allowUnfree = true; + + # Run this command, only after creating the virtual environment + postVenvCreation = '' + unset SOURCE_DATE_EPOCH + pip install -r requirements.txt + ''; +}