> Nix Dev Shells with direnv

Auto-activate reproducible dev environments with Nix flakes and direnv.

fetch
$curl "https://skillshub.wtf/skillshub-team/catalog-batch5/nix-devshells?format=md"
SKILL.mdNix Dev Shells with direnv

Nix + direnv

.envrc

use flake

flake.nix

{
  outputs = { self, nixpkgs, flake-utils }:
    flake-utils.lib.eachDefaultSystem (system: let
      pkgs = nixpkgs.legacyPackages.${system};
    in {
      devShells.default = pkgs.mkShell {
        packages = with pkgs; [ nodejs_20 pnpm python311 postgresql_16 redis ];
        env.DATABASE_URL = "postgresql://localhost/myapp";
      };
    });
}

cd into directory → environment auto-activates

Everyone on team gets exact same tools

direnv allow once, then automatic

┌ stats

installs/wk0
░░░░░░░░░░
first seenMar 18, 2026
└────────────

┌ tags

└────────────