Lang Nix
Check and build Nix flakes for reproducible envs.
Skill metadata
| Source | Bundled (installed by default) |
| Path | skills/software-development/lang-nix |
| Version | 1.1.0 |
| Author | VibeOS |
| License | MIT |
| Platforms | linux, macos |
Reference: full SKILL.md
к сведению
The following is the complete skill definition that VibeOS loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.
Nix Language Pack Skill
Drive Nix work with the project index and standard CLI recipes.
LSP hint: nixd (editor-side when applicable). Zero new core tools.
What this language is (beginner)
Язык и система воспроизводимых окружений: один flake — одинаковые зависимости у всех разработчиков и на CI.
Лучше всего для:
- воспроизводимые dev-shells
- детерминированные сборки
- описание toolchain проекта (компиляторы, утилиты)
When to Use
Выбирай этот pack, если:
- есть flake.nix / shell.nix / default.nix
- нужно «чтобы у всех работало одинаково»
- проект страдает от «на моей машине ок»
Manifests (автодетект репозитория): flake.nix, shell.nix, default.nix
Обычно рядом: Любой язык приложения внутри nix develop.
См. также skill choose-language-pack, если цель ещё не ясна.
When NOT to use
- простой Node/Python проект без боли окружений → обычный lockfile (pnpm/uv)
- только облачная инфра → Terraform
Prerequisites
vibeos pack apply lang-nix --apply
vibeos pack apply project-intelligence --apply
How to Run
vibeos project index build
nix flake check
nix build
nixfmt --check . || alejandra --check .
Quick Reference
| Goal | Command |
|---|---|
| Apply pack | vibeos pack apply lang-nix --apply |
| Doctor | vibeos language doctor nix |
| Primary test | nix flake check |
| Choose guide | skill choose-language-pack |
Procedure
- Если язык ещё не выбран для нового проекта — сначала
choose-language-pack. - Work from the project root that matches pack manifests.
- Index query →
read_file→ edit → path-scoped tests when iterating. - Prefer the package manager / toolchain already locked in the repo.
- Explain non-obvious toolchain choices in plain language for the user.
Pitfalls
- Flakes may need experimental features on older Nix.
- Do not silently update flake.lock inputs.
- Do not invent core tools; stay on
terminal+read_file+ index CLI.
Verification
vibeos language doctor nix
nix flake check || true