devenv

Automate development environment creation and configuration with Nix and devenv.sh.

21|Updated Jan 5, 2024
One-click install
npx skills add https://github.com/olafkfreund/nixos_config --skill devenv-olafkfreund
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: devenv
Source: https://github.com/olafkfreund/nixos_config/tree/main/.gemini/skills/devenv
Command: npx skills add https://github.com/olafkfreund/nixos_config --skill devenv-olafkfreund

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Devenv Skill provides a declarative, reproducible approach to building development environments, reducing setup time and inconsistency across machines and teams.

Core Features & Use Cases

  • Declarative configuration with Nix to define languages, services, processes, and environments.
  • Project initialization and onboarding support, including .env and direnv integration.
  • Quick-start workflows for local development, testing, and containerized setups, plus CI integration.
  • Reusable modules, scripts, and pre-commit hooks to standardize developer workflows across projects.

Quick Start

Initialize a new project with devenv init. Enter the development shell with devenv shell. Start services with devenv up. Run tests with devenv test.

Frequently Asked Questions about devenv

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create reproducible development environments with Nix?

To create reproducible development environments with Nix, you define languages, services, and tooling declaratively to ensure consistent workspaces across machines. This standardizes configurations and reduces setup inconsistencies for teams.

What is the best way to automate dev environment setup for new projects?

Automating dev environment setup uses declarative configuration to initialize projects, integrate direnv, and run services quickly. This method standardizes workflows with reusable modules and pre-commit hooks across multi-host setups.

Do I need Nix and direnv to manage declarative dev environments?

Yes, managing declarative dev environments requires Nix and devenv.sh integration, while direnv is used for automatic environment loading. Optional containerization is also available to provision isolated workspaces.

Can I use devenv for containerized local development and CI integration?

Yes, you can use devenv for containerized local development and CI integration. It supports quick-start workflows for testing and running processes in isolated containers, ensuring consistent environments from local machines to CI pipelines.

How do I initialize and start services in a Nix-based development shell?

To initialize and start services in a Nix-based development shell, run devenv init to create the project, enter the shell with devenv shell, and start configured services using devenv up.