devenv

Manage Nix-based development environments using devenv configuration files.

1|Updated Jan 2, 2020
One-click install
npx skills add https://github.com/otahontas/nix --skill devenv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: devenv
Source: https://github.com/otahontas/nix/tree/main/home/configs/pi-coding-agent/skills/devenv
Command: npx skills add https://github.com/otahontas/nix --skill devenv

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers manage and run a Nix-based development environment using devenv.

Core Features & Use Cases

  • Project-based environment: Automatically initialize and operate dev shells, services, and tasks defined by devenv.nix/devenv.yaml/.envrc.
  • Workflow integration: Execute project-defined workflows, run tests, and keep dependencies consistent across teams.
  • Use Case: In a repo that uses devenv, quickly start a development environment with devenv up and enter a shell for productive work.

Quick Start

Initialize and enter the development environment with devenv by running devenv init followed by devenv shell.

Frequently Asked Questions about devenv

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

FAQPage Schema
How do I enter a Nix development shell using devenv?

To enter a Nix development shell, run `devenv init` followed by `devenv shell`. This skill requires projects to have devenv.nix, devenv.yaml, and .envrc configuration files present to successfully launch the environment.

How do I start services defined in a devenv configuration?

You can start project-defined services by running the `devenv up` command. This skill automates initiating and managing the services and workflows specified within your project's devenv.nix and devenv.yaml files.

What files are required to run a devenv project?

Running a devenv project requires the presence of devenv.nix, devenv.yaml, and .envrc configuration files. These files define the Nix-based development environment, dependencies, and shell workflows for the skill to function.

Can I execute project-defined workflows and tasks with devenv?

Yes, you can execute project-defined workflows and run tests using the `devenv tasks` command. This skill supports running these workflows to keep dependencies consistent across teams within the defined environment.

Does devenv work without the Nix package manager installed?

No, devenv requires the underlying Nix tool and the devenv tool installed to function. This skill orchestrates Nix-based development environments, making Nix a mandatory dependency for entering shells and running services.

Why use devenv for Nix-based development environments?

Use devenv to keep dependencies consistent across teams and quickly start development environments. It integrates project-based workflows, tests, and services defined in devenv.nix, ensuring a reproducible Nix shell setup.