Skip to content

rfaulhaber/nix-local-buffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

nix-local-buffer

Execute buffer-local Nix environments.

Usage

This package provides one interactive function, nix-local-buffer.

You will be prompted for a flake (defaults to nixpkgs) and a list of packages.

Specifying nixpkgs and nodejs racket will build nixpkgs#nodejs and nixpkgs#racket and make their /bin directories available in the buffer environment.

Why?

  1. I want ad-hoc buffer-local environments that don’t use the old “nix-*” commands.
  2. I wanted to be able to run quickrun ad-hoc without making files.

Why not…?

I used to use nix-buffer. It’s great. But direnv / envrc makes it superfluous.

I actively use envrc and direnv. I am a big believer in the usefulness of direnv for projects. The problem is that I cannot use this for buffers that aren’t associated to files.

Feature wishlist

  • Searchable options, accept multiple selections

Releases

No releases published