I love Nix so much, because you can just super easily contain an entire development environment in one file. This stuff is genuinely

- More flexible than docker
- Easier than docker
- More reliable than docker
- Faster than docker
- More powerful than docker

Why isn't literally everyone using Nix?

#nix #nixos

Here, a development environment that installs

1. Bun
2. Playwright
3. Chrome, firefox and a generic webkit browser

And sets it up correctly, in an isolated environment? With a nice "hey, this is how you use this development environment" comment as a cherry on top?

The entire Nix file is 46 lines of code. Most of it boilerplate.

#nix #nixos

@Laauurraaa bonus: if you use <shell> (<shell> != bash), you can put "use flake" in .envrc (that is direnv) and it will automatically run "nix develop" for you each time you enter this directory. What is more important, it will drop you to <shell> automatically

@heinwol Hmm.. What do you mean by <shell>, is that something I'd have to put in the nix flake? It's hard to google syntactic subtleties like

"<shell>" vs "shell", and I didn't find it immediately on the direnv site.

@Laauurraaa oh, sorry, it's just my meta-notation. I mean fish or zsh or whatever you use. Just install direnv somehow and do this:

```console
> cd my-project
> echo "use flake" > .envrc
> direnv allow
```
Aaand you should be all done 

@heinwol The REAL important thing of our conversation though...

THAT EMOJI

THERE'S A CAT HOLDING A HEART EMOJI?! WHAT?!

@heinwol Ohh wait, it's not a utf-8 emoji is it? It's custom to mastodon?
@Laauurraaa yep . Moreover, if i get it right, it's custom for each instance, but you can see emojis people from other instances sent (sometimes it doesn't work though, ahem)
@heinwol Yeah only the blobcatheart worked, the last two are just :stuff:
@Laauurraaa damn, they're cute though ^_^
@heinwol I should crochet a heart for my cat to hold lmao
@Laauurraaa that sounds like a cool idea! The question is how can a cat hold this... Maybe make it small and put on a collar?
@heinwol Add some catnip inside and I can guarantee you it will take less than a minute to my cat Lemon to hold it

@heinwol I'm currently crocheting a collar for one my cats that I'm slowly giving more opportunity to go outside.

But I don't want her to kill birds, so I want to give her a bell.

It's nearly done

@Laauurraaa lol, can collars be crocheted??
@heinwol Anything can be crocheted as long as you are willing to take the time to do it lmao
@Laauurraaa lmao. Maybe the day I'll crochet something arrives, but I'm currently too lazy, ehe

@heinwol I crocheted a cushion-sized dragon quest slime..

I crocheted some bags for

- My keys at the coat rack
- My ginger in the kitchen
- My curcuma in the kitchen

Coasters

A hat with eyes

A blanket (this is a more than 3 year project at this point, it's still not done but I can comfortably chill on the couch with it lmao)

Some small holders/containers for candy, used batteries, medication...

@heinwol The important point is that it must be far too long, then I can use some knot that I forgot the name of to make the size adjustable.

All that's left then is to attach a bell.

Something like this knot, but not this one:

https://www.allaboutami.com/crochet-cord-bracelet-with-adjustable-closure/

Crochet Cord Bracelet with Adjustable Closure

Ever since I was a little girl, I’ve loved making my own bracelets using embroidery floss. I would spend hours upon hours poring through my macrame friendship bracelet book and trying out all…

All About Ami
@Laauurraaa you're so devoted, cool!

@heinwol I uhh.. try

thanks

@Laauurraaa i love the math background (knot theory) but I don't know it but it's interesting nonetheless

@heinwol Oh yeahhhh, knot theory is this crazy niche in math that is waayyyy out there.

I really want to learn more math in general..

I don't know if it's necessarily super meaningful for crocheting, but hey, who knows!

I did see a video recently of an industrial engineer who used some crazy knot theory/friction law to make robots move with millimetre precision without the use of gears if I recall correctly.

@heinwol Assume that everything I said there is incorrect, but I recall he did something with coiling cord and somehow, combined with friction laws, that made it basically impossible to break or something...

I don't think I'd be able to find the video whahaha