> Nix Development Environments
Reproducible development environments with Nix flakes and nix-shell.
fetch
$
curl "https://skillshub.wtf/skillshub-team/catalog-batch5/nix-development?format=md"SKILL.md•Nix Development Environments
Nix Dev Environments
flake.nix
{
inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; };
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; in {
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [ nodejs_20 python3 rustc cargo postgresql redis ];
shellHook = "echo 'Dev environment ready!'";
};
});
}
Enter: nix develop (or direnv for auto-activation)
shell.nix (non-flake)
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell { buildInputs = [ pkgs.nodejs pkgs.yarn ]; }
Key Benefits
- Reproducible: same packages everywhere (dev, CI, prod)
- Isolated: doesn't pollute global system
- Declarative: version-controlled dev dependencies
- Cross-platform: Linux and macOS
> related_skills --same-repo
> Nix Dev Shells with direnv
Auto-activate reproducible dev environments with Nix flakes and direnv.
> Dagger with GitHub Actions
Run Dagger CI/CD pipelines in GitHub Actions for portable, testable builds.
> Bun + Hono API
Build fast APIs with Bun runtime and Hono framework.
> Deno Fresh Framework
Build full-stack web apps with Fresh on Deno. Islands, routes, and zero runtime overhead.
┌ stats
installs/wk0
░░░░░░░░░░first seenMar 18, 2026
└────────────