Skip to content

Commit

Permalink
💡 (shells): add k8s default shell
Browse files Browse the repository at this point in the history
  • Loading branch information
elythh committed Jan 23, 2025
1 parent 101e3ae commit 4b95cd0
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions shells/k8s/shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
with import <nixpkgs> { 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
'';
}

0 comments on commit 4b95cd0

Please sign in to comment.