nix.nixFlakeDep
import { nix } from "https://garn.io/ts/v0.0.19/mod.ts";
const { nixFlakeDep } = nix;
Returns a NixExpression
that renders as an identifier that refers to a
flake input. At the same time it registers the flake input as a dependency,
so that it'll be included in the inputs of the generated flake file. See
renderFlakeFile
for an example.