Returns a Container with Nix installed using DeterminateSystems/nix-installer.
dagger -m github.com/tsirysndr/daggerverse/nix call \
setup-nix terminal
Name | Description | Required |
---|---|---|
src | Optional context directory. | false |
import { setupNix } from "jsr:@fx/nix";
const ctr = await setupNix(".");
const version = await ctr.withExec(["nix", "--version"])
.stdout();
console.log(version);