I did not really get your issues, but here is how I combine , and venvs: In my project dir, .envrc installs python in a guix profile ('use_guix' in direnv, if missing), creates a venv (if missing) which uses the python in the profile for --system-site-packages, and activates it, then installs requirements.txt in it.
Since the profile is "registered" it will not vanish.
I would expect nix bring able to do the same.
@publicvoit

#guix #direnv

Last updated 1 year ago

Ryst · @voidwalker
13 followers · 12 posts · Server hachyderm.io

Can I somehow use to change my git config for a subdirectory and its descendants? I.e. using a different email and author name for all repos in that tree. I know I can use home-manager to configure it on a user-level, but on a directory level for more than one repo would be pretty useful to keep work and private repos apart.

#nix #direnv

Last updated 1 year ago

:arch: dedSyn4ps3 :nixos: · @dedsyn4ps3
25 followers · 224 posts · Server fosstodon.org

@bolapara @JackMcCrack So, good news! After noticing the remaining permissions errors I was experiencing with dir-env revolved around symlink issues, I decided to backup the card and format it fresh using a different format type.

Turns out formatting the SD card to ext4 (instead of exFAT) was all I needed to resolve the symlink issues.

Now I can take advantage of external storage for project code and still use to enjoy my on experience! :blobcatcool: :nixos: 🀘

#direnv #nixos #surfacepro

Last updated 1 year ago

:arch: dedSyn4ps3 :nixos: · @dedsyn4ps3
21 followers · 202 posts · Server fosstodon.org

So, I've got a question for all my fellow and users out there:

I've continued to migrate various configs and building up some useful flake templates to use with the awesomeness that is ...however, since my has limited storage, I use it's SD slot for storing Project files...and direnv fails to fully load! 😭

I just get nix-store permission errors (even though I've made sure permissions are right for SD card). Yet env spawns on main drive no problem.. :nixos:

#nix #nixos #direnv #surfacepro

Last updated 1 year ago

chfkch :nixos: :rust: · @chfkch
141 followers · 2301 posts · Server ruhr.social

Yay, finally found the time to fix running on my development/gaming rig on via a devshell.
Now i just need time to get back in my old learning project.
@bevy

#bevyengine #bevy #nixos #direnv

Last updated 1 year ago

chimbosonic · @chimbosonic
22 followers · 133 posts · Server fosstodon.org

New blog post!
More hashicorp vault magic! This time I'm talking about auto loading secrets into your shell's env with direnv.

tilde.club/~chimbo/blog/posts/

#vault #hashicorp #direnv #blog #tildeclub

Last updated 1 year ago

Jon "The Nice Guy" Spriggs · @JonTheNiceGuy
164 followers · 72 posts · Server toot.io
Mark Gardner ‍:sdf: · @mjgardner
678 followers · 4277 posts · Server social.sdf.org

@ovid @barubary abounds, but for the past year I’ve favored asdf-vm.com and its github.com/asdf-community/asdf plug-in for pinning both single-language and polyglot projects’ runtimes and configs. Might want to look into it since it seems like you need to do a lot of shuffling from client to client.

#timtowtdi #asdf #direnv #perl #nodejs

Last updated 1 year ago

Mark Gardner ‍:sdf: · @mjgardner
668 followers · 4203 posts · Server social.sdf.org

@randomgeek @klardotsh is pretty magical when you also combine it with its plugin and you have one config file that specifies every tool version for polyglot projects, instead of separate plenv, nvenv, rbenv, et al config files.

It will also download, build, and maintain the installations for multiple versions of those runtimes using a single syntax. And can find the latest version on its own.

And it has built-in support for .

#asdf #direnv #nushell

Last updated 1 year ago

Lalo Leites · @Lleites
69 followers · 391 posts · Server fosstodon.org

@lenny_ Yes, that works perfectly fine. I am trying to avoid this initial step, so you can open VsCode from anywhere.
As you have the direnv hook in place, for you to do this is only a matter of installing the extension marketplace.visualstudio.com/i and creating a .envrc file with the line :
use nix
That will enable all the environment for the VsCode tooling automagically based on my experience.

#nix #nixos #vscode #direnv

Last updated 1 year ago

Jon "The Nice Guy" Spriggs · @JonTheNiceGuy
149 followers · 60 posts · Server toot.io

I wrote a blog post: "Using multiple accounts from the Command Line with (using ) and per-account keys" jon.sprig.gs/blog/post/2853

#github #environmentvariables #direnv #ssh

Last updated 1 year ago

Jeko · @jeko
273 followers · 3081 posts · Server framapiaf.org

All I need to do is fire up Emacs. Guix and Direnv take care of the rest.

rednosehacker.com/combo-guix-s

#productivity #dev #guile #direnv #guix #emacs

Last updated 1 year ago

Jeko · @jeko
274 followers · 3068 posts · Server framapiaf.org

After getting started with direnv.el I am now looking at envrc.el !

A Guix package is available...

Maybe I'll wrote about it until the end of the week !

#guix #direnv #emacs

Last updated 1 year ago

Gabriel :python: :django: · @Crocmagnon
149 followers · 114 posts · Server fosstodon.org

Struggling to setup to work with for your Python projects? I worked out the confit you need 😊

gabnotes.org/setup-rtx-with-di

Thanks @noboilerplate for the YouTube video where I discovered -cli 😊 (linked in the article)

#rtx #direnv

Last updated 1 year ago

pvergain · @pvergain
47 followers · 277 posts · Server qoto.org

- direnv.net/

direnv is an extension for your shell. It augments existing shells with a new feature that can load and unload environment variables depending on the current directory.

Use cases

- Load 12factor apps environment variables
- Create per-project isolated development environments
- Load secrets for deployment

#12factor #secrets #direnv #shell #cli #unix

Last updated 2 years ago

Jonn · @jonn
279 followers · 4060 posts · Server social.doma.dev

just works with .

My new favorite shell???

#VimShell #direnv

Last updated 2 years ago

Jonn · @jonn
279 followers · 4059 posts · Server social.doma.dev

Behold, the new queen is here.

running and hook.

#bash #direnv #copilot #VimShell

Last updated 2 years ago

Tim Smith · @tim
161 followers · 232 posts · Server mastodon.tds.xyz

My particular favourite underappreciated way to set up a robust isolated environment is + + -tools.

Dependency management:
- Keep abstract dependencies in requirements.in or pyprojects.toml
- Compile to a lockfile with pip-compile
- Update your environment with pip-sync

Virtualenv management with direnv:
- pyenv install 3.11.0
- echo layout pyenv 3.11.0 > .envrc
- enjoy automatic local venv creation and activation

It's very boring, imposes few opinions, won't break!

#pip #pyenv #direnv #python

Last updated 2 years ago

Giulio · @giuliohome
13 followers · 220 posts · Server mastodon.world