Skip to content

Instantly share code, notes, and snippets.

@lpabon
Last active October 13, 2025 17:54
Show Gist options
  • Save lpabon/a67fc5def3ddfa7e8488a495b834049b to your computer and use it in GitHub Desktop.
Save lpabon/a67fc5def3ddfa7e8488a495b834049b to your computer and use it in GitHub Desktop.
shell.nix
# OVERVIEW
# Nix shell allows the creation of reproducable environments. Very similar to
# a container environment but without the need for mounts, namespace, or cgroups.
#
# INSTALL
# Install nix-shell (Single-user): https://nixos.org/download/#nix-install-linux
#
# RUN
# nix-shell k8s-dev.nix
let
# Get the latest release from https://github.com/NixOS/nixpkgs/tags
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-25.05";
pkgs = import nixpkgs { config = {}; overlays = []; };
pythonEnv = pkgs.python3.withPackages (python-pkgs: with python-pkgs; [
pip
wheel
setuptools
build
hatchling
virtualenv
]);
in
pkgs.mkShellNoCC {
packages = with pkgs; [
cowsay
lolcat
buildah
podman
kubernetes-helm
kubectl
k9s
git
vim
pythonEnv
neovim
helix
fish
yazi
lazygit
tmux
];
shellHook = ''
echo "K8S Dev shell ready" | cowsay | lolcat
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment