I have the most random standalone #Nix / #HomeManager glitch just now.
For some reason, after I switched to home-manager-managed #bash, after a reboot, I lost my profile being sourced. So I had to add
```
if [ -e /home/sweater/.nix-profile/etc/profile.d/nix.sh ]; then . /home/sweater/.nix-profile/etc/profile.d/nix.sh; fi
```
to `bashrcExtra`.
Full disclosure: the variable wasn't empty before last switch, but still it shouldn't affect anything? Idk, weird.
Conclusion from the recent Apple article on LLM performance (https://arxiv.org/pdf/2410.05229). In my field, large variations in output from small variations in input is called chaos. Not something on which you can build a robust and reliable system.
I learned so much by being wrong on the Internet!
Thank you, @Kiskae and @IslandUsurper 😍
@jonn I believe you can use `direnv_layout_dir` in your direnv script to get an env-specific directory instead of PWD
@jonn neat idea, but I don’t think the tests actually work right. If it installs Hex, it won’t be able to install rebar, right? Might be better to use `mix local.hex —force —if-missing; mix local.rebar —force —if-missing ` instead.
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!
Too bad there was no woman in the vicinity of this Nobel-worthy paper to share the award, really, one tries one's best, but it's so hard to find women who do science worthy of a #NobelPrize.
Mad cow disease, also known as Bovine spongiform encephalopathy, is when cows ingest contaminated meal, which can be sometimes made up of other cows. It was considered a disaster for the cattle industry in the 1990s.
Anyway, I bring it up because this is basically how LLM slop is starting to work now. All the nutritional grass has been eaten and now what’s left is the contaminated meal made from other LLMs. The LLMs eat the meal, and soon we will have, like Mad LLM disease or something
I wrote a note: "Monitoring VPS Network Usage with vnStat and NixOS" https://notes.abhinavsarkar.net/2022/vnstat-dashboard
I recreated the Barbican Estate in the lovely Townscaper app. I couldn't make the towers any taller but quite pleased with it otherwise
More pics: https://www.flickr.com/gp/philgyford/kLr09g79ru
The app: https://www.townscapergame.com
#Nix is muddy waters.
But if you know enough, it works.
That https://doma.dev guy
#lean #rust #typescript #react #nix
In my non-existent free time I design and run #TTRPG
If you use tools made by genocide-apologists, you are a genocide-apologist.
#lemmy users aren't welcome here.