# Devenv is switching Nix implementation to Tvix

**URL:** https://discourse.nixos.org/t/devenv-is-switching-nix-implementation-to-tvix/54753
**Category:** Announcements
**Created:** [October 22, 2024, 1:25pm UTC](https://discourse.nixos.org/t/devenv-is-switching-nix-implementation-to-tvix/54753 "2024-10-22T13:25:02Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![domenkozar](https://discourse.nixos.org/user_avatar/discourse.nixos.org/domenkozar/32/38357_2.png) [@domenkozar](https://discourse.nixos.org/u/domenkozar)
#### Post date: [October 22, 2024, 1:25pm UTC](https://discourse.nixos.org/t/devenv-is-switching-nix-implementation-to-tvix/54753/1 "2024-10-22T13:25:02Z")

</div>

> **[devenv is switching Nix implementation to Tvix - devenv](https://devenv.sh/blog/2024/10/22/devenv-is-switching-nix-implementation-to-tvix/)**
>
> Fast, Declarative, Reproducible, and Composable Developer Environments using Nix

---

<div class="post-metadata">

### Author: ![kiara](https://discourse.nixos.org/user_avatar/discourse.nixos.org/kiara/32/37249_2.png) [@kiara](https://discourse.nixos.org/u/kiara)
#### Post date: [October 22, 2024, 3:10pm UTC](https://discourse.nixos.org/t/devenv-is-switching-nix-implementation-to-tvix/54753/2 "2024-10-22T15:10:42Z")

</div>

congrats for switching over.  
thanks for writing about the adoption chasm as well - unfortunately that sounds like a pretty real issue.

---

<div class="post-metadata">

### Author: ![niklaskorz](https://discourse.nixos.org/user_avatar/discourse.nixos.org/niklaskorz/32/39496_2.png) [@niklaskorz](https://discourse.nixos.org/u/niklaskorz)
#### Post date: [October 22, 2024, 3:48pm UTC](https://discourse.nixos.org/t/devenv-is-switching-nix-implementation-to-tvix/54753/3 "2024-10-22T15:48:31Z")

</div>

What timeframe do you anticipate this switch to happen in? As you mention in the announcement, there are still some missing components, and judging from a look at the TVL repo, tvix is not quite ready for end users yet.

---

<div class="post-metadata">

### Author: ![domenkozar](https://discourse.nixos.org/user_avatar/discourse.nixos.org/domenkozar/32/38357_2.png) [@domenkozar](https://discourse.nixos.org/u/domenkozar)
#### Post date: [October 23, 2024, 9:22am UTC](https://discourse.nixos.org/t/devenv-is-switching-nix-implementation-to-tvix/54753/4 "2024-10-23T09:22:29Z")

</div>

Any timeframe that I’d say would be pure speculation, we have to get things in order before we make the switch.

We’d have confidence in the evaluator and the tooling to be able to debug any issues before that happens.

Getting things right takes time, we’re not aiming for perfection but rather a good test coverage and tooling.

That’s also why I’ve laid out in the post about the scope of work rather than a made up timeframe.

---

<div class="post-metadata">

### Author: ![autra](https://discourse.nixos.org/user_avatar/discourse.nixos.org/autra/32/16382_2.png) [@autra](https://discourse.nixos.org/u/autra)
#### Post date: [October 25, 2024, 3:45pm UTC](https://discourse.nixos.org/t/devenv-is-switching-nix-implementation-to-tvix/54753/5 "2024-10-25T15:45:40Z")

</div>

I have quite a lot of questions with tvix (what is TVL? What’s this community about? What is their governance? Seems pretty opaque to me…), but most importantly, unless I’m mistaken, tvix is GPL and devenv is apache2. Don’t you have a licence problem?

---

<div class="post-metadata">

### Author: ![iFreilicht](https://discourse.nixos.org/user_avatar/discourse.nixos.org/ifreilicht/32/9702_2.png) [@iFreilicht](https://discourse.nixos.org/u/iFreilicht)
#### Post date: [October 25, 2024, 9:51pm UTC](https://discourse.nixos.org/t/devenv-is-switching-nix-implementation-to-tvix/54753/6 "2024-10-25T21:51:52Z")

</div>

This is a very cool development! One question I have is what this means for compatibility with an existing Nix installation. I’ve read that tvix’s builder interface is incompatible with that of the nix-daemon. I guess you don’t want to run tvix as a single-user process, but two daemons managing the store at once seems kind of sub-optimal as well as their actions could conflict with each other. Do you already know what the solution to this will be?

---

<div class="post-metadata">

### Author: ![domenkozar](https://discourse.nixos.org/user_avatar/discourse.nixos.org/domenkozar/32/38357_2.png) [@domenkozar](https://discourse.nixos.org/u/domenkozar)
#### Post date: [October 26, 2024, 10:15am UTC](https://discourse.nixos.org/t/devenv-is-switching-nix-implementation-to-tvix/54753/7 "2024-10-26T10:15:42Z")

</div>

We’re going to evaluate and then talk to nix-daemon for doing the builds.

I’m going to be talking in details about the plan at [NixCon 2024](https://talks.nixcon.org/nixcon-2024/talk/AM7K7F/).

---

<div class="post-metadata">

### Author: ![iFreilicht](https://discourse.nixos.org/user_avatar/discourse.nixos.org/ifreilicht/32/9702_2.png) [@iFreilicht](https://discourse.nixos.org/u/iFreilicht)
#### Post date: [October 26, 2024, 11:07am UTC](https://discourse.nixos.org/t/devenv-is-switching-nix-implementation-to-tvix/54753/8 "2024-10-26T11:07:52Z")

</div>

Oh great! I’ll have a look at the VoD later 🙂

---

<div class="post-metadata">

### Author: ![VanCoding](https://discourse.nixos.org/user_avatar/discourse.nixos.org/vancoding/32/1569_2.png) [@VanCoding](https://discourse.nixos.org/u/VanCoding)
#### Post date: [October 28, 2024, 10:39am UTC](https://discourse.nixos.org/t/devenv-is-switching-nix-implementation-to-tvix/54753/9 "2024-10-28T10:39:20Z")

</div>

@domenkozar I’ve watched your talk about this topic, and there’s a question that I hope you can maybe elaborate on a bit:

To me it looks like the reason for devenv having it’s own cli, and now is making the switch to Tvix, is based around caching nix evaluation. But why can’t the `nix run` command be improved to do this caching? Wouldn’t that benefit everyone and also solve the issue you’re trying to solve in devenv?
