Skip to content

Instantly share code, notes, and snippets.

@masamerc
Last active December 20, 2025 14:31
Show Gist options
  • Select an option

  • Save masamerc/ccc764945c6f76388f40a93aaf96f722 to your computer and use it in GitHub Desktop.

Select an option

Save masamerc/ccc764945c6f76388f40a93aaf96f722 to your computer and use it in GitHub Desktop.
A good starter dev shell template flake.nix
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
packages = [
pkgs.cowsay
pkgs.git
pkgs.uv
pkgs.nushell
];
# if you use zsh, uncomment the following block
# shellHook = ''
# zsh
# '';
};
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment