nix-flake

Installation
SKILL.md

Nix Flake Development with flake-parts

All flakes use flake-parts with perSystem for per-architecture outputs.

Formatter

Always set formatter = pkgs.nixpkgs-fmt.

Shell scripts

Use pkgs.writeShellApplication (not writeShellScriptBin). It enables strict mode and validates runtimeInputs at build time. Always add meta.description.

Key conventions

  • Keep flake.nix minimal — delegate definitions to individual .nix files and import them.
  • perSystem for per-architecture outputs (packages, devShells, checks, formatter).
  • flake (top-level) for arch-independent outputs (nixosConfigurations, lib, overlays).
  • Add meta.description to every package or script.
Installs
1
Repository
juspay/ai
GitHub Stars
9
First Seen
Jun 20, 2026
nix-flake — juspay/ai