toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

279
active users

#direnv

0 posts0 participants0 posts today

Managed to change my #nixos configuration, home manager setup, and most of my #direnv setups to using #nix flakes all following the same nixpkgs version.

As usual jekyll proved to be the most challenging, but now it is installed with plain nix packages.

Next step is to do some prompt hacking. And by prompt hacking I mean fiddling with PS1 to include current devshell.

Seeing some of the chatter about Starship lately, and piggybacking off of @treyhunner 's recent foray, I decided to update my coding environment as well.

I hardly understood anything when I got started, but I'm pretty happy with the results. Thanks @webology as well as @kattni for pressuring Trey 😅

pythonbynight.com/blog/termina

Starship, just, direnv, and uv - It's Terminal!Starship, just, direnv, and uv - It's Terminal!I started using Starship, just, direnv, and uv to bootstrap my Python projects and manage my git profiles.
#starship#uv#direnv

A small hint for all the #Elixir users out there.

I don't know about you, but I always cringed at how dirty mix is when it comes to installing third party toolchain dependencies.

Twelve years into using it, I learned that you can actually localise third-party installations!

Here's a snippet from my #direnv.

```sh
mkdir -p .nix-mix .nix-hex
export MIX_HOME=$PWD/.nix-mix
export HEX_HOME=$PWD/.nix-mix
[ -z "$(ls -A .nix-mix)" ] && mix local.hex
[ -z "$(ls -A .nix-mix)" ] && mix local.rebar
```

This can make your #Nix builds pure without faking HOME!

I started migrating from virtualenvwrapper to direnv this week.

I also adopted uv for venv management and Starship for my zsh prompt.

Thanks to @webology for the nudge that resulted in this post being published today, thanks to @kattni for sharing a very plain Starship config file, and thanks to everyone who participated in the thread earlier this week.

treyhunner.com/2024/10/switchi

treyhunner.comSwitching from virtualenvwrapper to direnv, Starship, and uvEarlier this week I considered whether I should finally switch away from virtualenvwrapper to using local .venv managed by direnv. I’ve never …
Replied in thread

I did not really get your issues, but here is how I combine #guix, #direnv 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

Replied in thread

@randomgeek @klardotsh #asdf is pretty magical when you also combine it with its #direnv 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 #Nushell.

Today, we build off of the 𝓉𝑒𝓇𝓂𝒾𝓃𝒶𝓁 𝓋𝑒𝓁𝑜𝒸𝒾𝓉𝓎 in the previous Drop and focus on leveling up the safety, resilience, and utility of our humble (and very likely way too populated) shell environments.

Drop #216 (2023-03-09)

EPA (Environment Protection & Agency)

#declare/#readonly; write safer scripts & communicate intent to your future self and team
#direnv/#quickenv;per-dir/project environments (Golang)
#autoenv; slightly different take on ^^ in Rust

Read/sub: dailyfinds.hrbrmstr.dev/p/drop

hrbrmstr's Daily DropDrop #216 (2023-03-09): EPA (Environment Protection & Agency)By boB Rudis