Skip to content

Instantly share code, notes, and snippets.

@bscott
Last active December 4, 2021 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bscott/0c1be04cb43520ca7453f9cd3ce98f38 to your computer and use it in GitHub Desktop.
Save bscott/0c1be04cb43520ca7453f9cd3ce98f38 to your computer and use it in GitHub Desktop.
Nix Dev Shell Setup
{ pkgs ? import <nixpkgs> {} # here we import the nixpkgs package set
}:
pkgs.mkShell { # mkShell is a helper function
name="dev-environment"; # that requires a name
buildInputs = [ # and a list of packages
pkgs.nodejs
pkgs.python3
pkgs.go
pkgs.rustc
pkgs.wget
pkgs.starship
pkgs.vim
pkgs.gitFull
pkgs.kubectl
pkgs.kubectx
pkgs.kubetail
pkgs.zsh
pkgs.fish
pkgs.zsh-nix-shell
pkgs.oh-my-zsh
];
shellHook = 'zsh' # bash to run when you enter the shell
echo "Default Tools are ready to go..."
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment