Is there a solution to load a #nix env for a single #emacs buffer from an arbitrary file?
I'd like to be able to define an environment for a specific #OrgMode file (within #OrgRoam, so in a flat file structure), which would (ideally) tangle a `shell.nix` to the `org-attach-id-dir`, and be loaded into the buffer with some elisp code.
I'd use this, e.g., for taking #literate #pkm notes on programming languages and packages. But being able to define a run environment within #literateprogramming, esp for #reproduciblescience, sounds quite generally useful though.
The basics seem to be in `nix-buffer`, `emacs-direnv` and `envrc.el`, but they all seem to require a directory-specific environment rather than an arbitrary nix file.