Skip to content

A GitHub action to switch into the nix shell for the rest of the workflow

Notifications You must be signed in to change notification settings

lukas-mertens/switch-into-nix-shell

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Switch into Nix Shell Action

This GitHub Action switches into a Nix shell and exports the environment variables to subsequent steps.

Inputs

nix_args

Optional Additional arguments to pass to nix print-dev-env.

Usage

steps:
  - uses: actions/checkout@v4

  - name: Switch into Nix Shell
    uses: lukas-mertens/switch-into-nix-shell@v1

  - name: Use nix env
    run: |
      which vim

Or pass args to nix print-dev-env:

steps:
  - uses: actions/checkout@v4

  - name: Switch into Nix Shell
    uses: lukas-mertens/switch-into-nix-shell@v1
    with:
      nix_args: '--impure'

  - name: Use nix env
    run: |
      which vim

About

A GitHub action to switch into the nix shell for the rest of the workflow

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages