start	end	text
0	8800	So, yes, this is the first, actually, DEF CON talk on what's technically an official DEF CON stage about Nix.
9040	11220	So, yeah, just to give some intro.
11220	11680	Yeah.
11880	13360	Give it up for Nix.
16440	19180	So yeah, we're going to talk about the Nix ecosystem.
19180	23180	This talk is called rebuild the world because that's kind of what Nix is trying to do.
24100	28500	Nix is, well, it's a lot of things to a lot of people.
28920	29980	Let's start with intro.
29980	31440	So I'm Morgan Jones.
31460	34520	Hi, I'm Thomas Breckney.
34520	36440	You might know me as Tom Breck.
36440	39880	I've been doing Nix stuff for more than a decade now.
40020	43740	And probably have touched a lot of different portions of the ecosystem.
44080	56780	And my main efforts these days have been to promulgate, promote the use of Nix throughout the world, industry, companies, organizations, people, and just trying to spread the good word.
57860	59140	Hi, I'm Fareed.
59140	67880	I don't professionally work on Nix, but I've used it not quite a decade, but over half a decade at least.
67880	77680	And I'm an active contributor and I'm a pretty vocal, you know, critic and positive about Nix after having used it for so long.
77960	78420	Yeah.
78780	80900	And yeah, just a bit about myself.
80900	83020	So I'm Morgan Jones.
83120	93040	I'm a Nix packages committer and I've been working at Viasat on reproducible builds of various bits of software with Nix.
93080	96820	And I've been using it for the past, I think eight or so years at this point.
97600	107760	And yeah, I got into it for Raspberry Pi project in college and it's kind of just completely changed how I deploy Linux.
107760	109960	So glad to have these guys on stage.
110580	111100	All right.
111100	120540	So let's kind of talk, let's talk, I guess the, so Nix is an ecosystem that has like three major components.
120540	123080	There's Nix, the package manager and language.
123080	125600	There's Nix packages, the package sets.
125900	127600	There's Nix OS, the operating system.
127600	130680	Can you guys kind of talk about like, what's the difference?
130700	133340	Why should people care that there is a difference?
135520	136060	Yeah.
136200	143520	So the way I think about it is actually a little bit backwards than you might have in other, other like ecosystems or distros.
144100	149800	So in this ecosystem, Nix, the package manager essentially came first.
149880	158540	And the original idea was for it to be a package manager or a software distribution mechanism that would work anywhere.
158540	160660	It would work on other distros.
160780	170260	It would work on, you know, whatever like kernel or Unix flavor you were on and you would have a system that could reliably distribute software and move it around.
170500	171860	Well, that came with some requirements.
171860	174200	We had to actually like rebuild software.
174200	176820	We had to have a way to like manage all these build recipes.
176820	177000	Right.
177000	178940	So that's where Nix packages came from.
179020	184640	And then someone had this great idea of like, well, wait a minute , if I have a package manager, what if I make an OS?
184640	188000	So then that's where like the OS as a distro came from.
188620	190020	Which, you know, is good.
190280	193640	A lot of people come to the ecosystem through the OS.
194020	200560	But understanding that it originally came from that like package manager that can kind of coexist anywhere is important to keep in mind.
200560	203960	Because it also highlights some of the big benefits you get out of it.
206660	212180	Sorry, and the question was like, which of the three do you think ultimately is the most important to or?
212180	216480	More like kind of what's the notable things that are important about each?
217180	225920	Yeah, like the most important thing to me ultimately, and I touched on this on a talk earlier, is that there's a graph.
225920	235580	I mean, you get this point sometimes where you learn Nix, where you come away with there was there's a class of problems everyone's facing that you don't have today.
235920	241000	And I think we use the word packages , Nix, language operating, they're all like fancy words.
241000	253380	And you could say just files like there was a there is still this fundamental problem where you cannot update a machine at the same, you can't deploy more than one file atomically prior to Nix.
253380	255560	That is like one primitive you have.
255560	257560	So it's like the series of primitives.
257820	260380	And from that, you get all this cool stuff.
260500	275480	And I think whichever avenue leads you to those primitives, whether it's the language, the operating system, the package manager, is just your in road into this ecosystem that's going to unlock tons of value.
275480	277920	And it really doesn't matter which way you come in.
278900	280620	So why not just use Docker?
281840	286240	Oh, you're giving me eyes like you want to go.
286240	286660	Sure.
286660	288620	I have also a lot of you can go first.
288620	290040	I have so much pain here.
290060	302080	So in the ecosystem, Docker represents this point of, well, what if we do a bunch of things that make it easier for you to deploy software, but we have zero opinion about packaging.
302240	305040	That's roughly kind of like the approach Docker took.
305360	308440	Notably represented as like their Docker file.
308440	320160	In your Docker file, you either copy in the binary you need directly or you piggyback on top of some other existing ecosystem in order to build up the environment that you need.
320160	323020	So they took a very like hands off agnostic approach.
323020	325240	We're not going to solve the packaging problem.
325740	329400	What ended up happening is then I mean, that works.
329400	330720	It works pretty well.
330720	333500	It works very well as a leaf mechanism.
333620	348920	And it created an amazing ecosystem of orchestration, like all the Kubernetes, the, you know, the cloud native ecosystem, like it's really good at like large scale runtime orchestration, but they have still dodged the problem of packaging.
349480	359360	And effectively enough that it actually right now we have a less interest, less expertise of how to properly do packaging, because what's the point of packaging, right?
359360	362540	It's to make software reusable in more places.
362580	364140	That's why you package something.
364140	366060	Otherwise, what would be the point?
366580	373660	And let's say you like deploy a library of some kind or an SDK.
373880	389160	Well, if you need your library or SDK used by other people, if you give it to them as a container, that's great and all, but what if that person now has to combine two different libraries or two different ecosystems, two different SDKs or three or four,
389160	389660	right?
389660	394500	Because you're gluing together a larger system and these things have to work together.
394500	401020	You can't say, hey, from three different containers, smush them all together and now make them all work.
401020	403340	You're very likely going to have problems.
403400	405260	Because those aren't packages.
405660	421380	That's something that Nix actually solves very well, which is say I can safely squish together three different distributions or three different software libraries or three different SDKs and have them safely be composed together and now glue together the larger system that I want.
421580	425600	So it's not really why not use Docker.
425600	426380	I mean, use Docker.
426380	426780	It's great.
426780	430540	It's awesome for orchestration, for final artifact delivery.
430760	433100	There's all sorts of like support for it.
433300	436040	But don't, it's not a packaging system.
436260	437780	It's not a package ecosystem.
437780	439980	It's not a configuration management ecosystem.
440080	443160	It's an artifact distribution mechanism.
443740	446420	So go ahead and use that and also Nix works well with it.
446420	448840	You can use Nix to build your Docker containers.
448920	453780	Those CI containers get split at the other end, use them, integrate with them.
453780	456940	So I kind of don't see it as Nix versus Docker.
456940	458600	I see it as Nix and Docker.
459900	465540	But also please don't ask me to use a Docker image to develop in your project.
465780	473820	Like the amount of complexity it adds, it's like you have to be in there's a PID namespace, a mount namespace, a network namespace.
473820	476180	I want to debug your app, the application.
476180	477160	Oh, wait, okay.
477160	482560	You know, like, remember the port mapping, there's a NAT bridge, maybe open up on the host port.
482860	486440	It's like, Nix boils that all away.
486440	494860	I mean, people take on that complexity because they're trying to solve what sort of Nix gives you from the bottom up rather from the top down.
495500	502060	And the one of the largest takeaways I think is the conflation between immutability and reproduction.
502500	504840	So Docker is great in that it's immutable.
504860	513660	The final image is like a golden image you can ship around and you get some amount of there's reproduction in the fact that you're shipping a final product.
513660	515620	Like the master CD.
515720	520420	But I'm sure many of us have had that experience where you go to change something in it and it breaks.
520640	523180	And nothing about that experience is reproducible.
523180	527560	And there's like tons of blog posts on like, well, this is how you make it reproducible.
527560	530180	And you got to bolt on additional patterns.
530760	538280	Like, you know, Nix is a little more complexity up front and then it gives you the rail guard so you don't need to do any of that.
538460	540940	So I think that's like why not.
540940	545460	If I wanted to give you a sales pitch on why not use Docker from that angle that would be the case.
546400	553240	Actually I have another piece which was to switch the game around and using Nix inside of images.
553580	560740	We actually see that if you look at the Docker debugger that Docker put out, it's using Nix inside the hood.
560760	575800	We're seeing a lot of use cases where in limited run time environments people need a way to bring in additional packages to have users and clients customize them but in a way that's not going to destroy whatever the image itself is already doing.
575800	580480	Well, what's a great way to bring in new packages to an ecosystem in a non-conflicting manner?
580480	582780	That was the original use case for Nix.
582780	591300	So we're seeing that example being used as well which is to start using it inside of containerization, virtualization, lightweight virtual machines and so forth.
591300	601980	One of the kind of things that there was kind of a joke about Docker that someone made a while ago that was like, basically it was just Vim packaged with Docker.
601980	605320	Like the entire Docker image was just to run Vim.
605480	617660	And well, with Nix you can kind of do the same package granular like containers but not really containers but you don't have all the overhead of running a whole Linux system.
620040	624420	On a related note, so let's talk kind of like SBOM stuff.
624580	646480	So Nix, if we're rebuilding everything from the ground up and we don't have to deal with this kind of top-down problem of scanning images for what software they're using and all that stuff, if we actually have all the dependencies from the bottom up, how does Nix kind of change the game for knowing what goes into your software?
648420	670740	I think having a view of your graph and a reliable way to understand all your dependencies is game changing from many angles like knowing the provenance of the code down to the commit of every particular piece of code as well as patches is a game changer.
670740	673300	And I think people attach provenance to like versions.
673300	680500	When I see someone, you know, I help a lot of friends, coworkers debug and they're like, you run hyphen hyphen version on a command.
680500	686320	That is, feels, you know, and it's like, oh, incredibly granular to them.
687120	692580	But a major, you know, even a minor version and semantic versioning, it's like, what is the commit at that level?
692580	697520	And what is the commit at that level and what dependency did it take on?
698240	708720	That level of specificity is huge in understanding like, are you vulnerable to certain CVEs, the provenance and supply chain trust for everything you're running?
708760	718600	And those are the primitives you take to build a secure enclave for what you're running your machine on so you have a lot of reproduction and you know what you're running.
721830	726490	So I would actually say that that specificity is actually a dual edge sort.
726490	738150	It actually causes problems because that specificity is not the level that people who are managing, tracking for security vulnerabilities, they don't track to that level of specificity.
738150	745070	They don't care about like, who's using NICs and what commit is this and what's this transit of that.
745070	747430	Like, one, you know, we're not big enough yet for that.
747430	750230	But also like, they're not doing that for other ecosystems either.
750230	752730	They are doing it at that fuzzy level.
753110	759710	So I think the ultimate outcome we're probably going to get to is like, we have really good S bombs today.
759710	761330	We have them by construction.
761330	768630	We actually start with making an S bomb super and then we use it to build our software.
768830	769130	Right?
769130	770090	Rather than the other way around.
770090	773050	We don't just build the software and then go try to extract it all out.
773070	774630	We actually started with that.
774630	779250	So 20 years ago, we didn't call them S bombs, we called them derivations.
779410	784290	But bad naming aside, that means we're correct by construction.
785490	788270	Next thing we got to do now is actually weaken it.
788730	795650	We now have to be able to create an S bomb that includes that ultra precise, you know, identifier.
795650	798170	But we also need to have a really fuzzy identifier.
798170	806870	The sort of identifier that, you know, the NBD folks, MITRE and all the security vendors are going to use, which is going to be something different.
806870	809690	Something like a CPE , something like a package URL.
810370	814270	And for the most part, we could probably get that out of Nix packages today .
815070	822510	One of my call to actions I'd like to propose is let's fix up some of the places where it's not quite right.
822990	841150	Add those fixes and now we can start generating not just hyper accurate S bombs but also usable ones that now can be given to any security vendor that will gladly ingest it, take the responsibility off of them for scanning and heuristics and managing the images and containers that just throw an S bomb at them,
841150	845610	they'll send you alerts and updates and vulnerability information and all that stuff.
845610	851530	And now you have really easy integration into like a lot of the corporate environment, a lot of the organizational environments.
851550	856130	Because now you have like both the precision and integration.
856450	859470	But there's an opportunity to scan the source.
859470	872950	And I think like the gap here is oftentimes you want that course fidelity because you, I mean, nobody builds packages rarely from source in their pristine format.
872950	879370	Every distribution adds some sort of patches to make it work with other package sets in that ecosystem.
879630	888290	So you need having the ability to go to source and then do the analysis is incredibly factual.
888330	893550	Like you know are you vulnerable to this CV because they might have already patched that CV but kept the version number.
894170	904910	And the Nix S bomb lets you get the source exactly for every single package you've installed.
905050	911590	And you one could follow and then audit the source and see if you're vulnerable.
911810	918630	But I think like that's such a leap from where we are today that we're not there yet.
918630	921890	But because yeah, a few other technologies offer that capability.
921890	925750	So what I'm hearing is that we need to add a static analysis phase to standard ENV.
928770	930590	Well, maybe not quite that.
930590	933510	But you have to be able to do like all of these things.
933510	936570	You have to be able to expose the power to go dig into source.
936570	939730	You have to expose the power to understand the full graph.
939730	941710	You have to be able to make this integratable.
942730	956370	So while in theory from an academic perspective we're perfectly positioned and have these like amazing S bombs ready to go, the ecosystem needs a little bit more work to really like make them shine, right?
956370	960150	We can't actually expose that power today as easily.
960150	961390	So that needs a little bit of tooling.
961390	962670	It needs integration.
963170	965410	It needs like ecosystem improvements.
965770	967770	But I mean, the potential is there.
967770	969570	It just has to be realized.
970310	971070	Yeah.
971070	982410	And if any of you like have done source level analysis, you might be thinking, okay, I have this on our Linux distribution, Debian, Fedora, whatever base distribution.
982750	989570	It's like somewhat true you do, but it's because there's a single package set and you can't really deviate from that.
989570	994170	So they've solved that by really clamping down on the compatibility matrix story.
994170	1002890	They're saying these are the package sets you get only at these versions and you can work back to this golden package set and do all the analysis you'd like.
1003050	1009290	Nick says you kind of get that and you can go off the rails and do whatever you want and still follow that chain of trust.
1009650	1012030	So I think that's an important caveat.
1012030	1021250	It's like, you know, one way to solve this, which we've done historically in the past is just limit the expressiveness that developers can do.
1021250	1031290	And Nick says, no, go ham, go install any package you want, any version you want, any commit you want, and we'll, like, give you the tool set to still go to source if you need.
1033310	1041370	Speaking of trust a little bit, can you guys talk about maybe, like, a couple things about Nick's trust model.
1041370	1050330	Like if you're downloading packages from somewhere and substituting them as the term kind of is, what are you trusting?
1050330	1056630	What is, what are you kind of assuming about where you're grabbing the packages and what packages they are?
1059140	1079620	Yeah, so if you're just going through, like, an initial user, the way that trust model works is, well, we have a bit , the Nick's foundation runs a build farm, organizes, orchestrates it with something called Hydra and they will build all the packages get built from source and they get signed and they get pinned to a cache.
1079680	1082080	That cache is a optimization.
1082720	1084480	You can go rebuild all those yourself.
1084480	1088420	You just turn off the substitutor and you will essentially rebuild the world.
1088860	1096280	It will take a few hours depending on what it is that you're building because you are really going to go, like, all the way down the bootstrap and start, like, rebuilding everything.
1096680	1097920	That's a great way to audit.
1097920	1100300	That means auditability is right at your fingertips.
1100560	1102700	But for practicality you want to substitute.
1102820	1109980	And by default what you're trusting is that public key that is then signing everything that the build farm produces.
1109980	1115200	If you work at a company, let's say you have a policy that you also have to rebuild from source, cool.
1115200	1117900	You rebuild everything from source the way I just mentioned.
1117900	1122880	You sign it with your own public key, public private key pair and then that's what you trust.
1122980	1136380	And as long as the substitutor serves those up correctly with the signatures, then now you have assurance that you're getting your software from something that, you know, complies with your policy or whatever your thing happens to be.
1137100	1140880	And Nix takes a lot of extra steps to be able to rebuild the world.
1140880	1144900	Maybe not as much as, like, foundations like the Software Heritage Foundation.
1145160	1153220	But rebuilding from source, just because you have the recipe set to do it, doesn't mean it still exists out there in the world.
1153260	1164420	So that you have to take a lot of actions in place to cache sources, patches, works of art, so that you can go years later and rebuild things from source.
1164420	1168320	So that is the promise Nix gives you only if the source exists.
1168780	1176220	There's work streams by the Software Heritage Foundation where they're like, kind of like the Internet Archive, archiving the world alongside Nix.
1176220	1179420	And they're using Nix here to do that.
1179440	1189280	The Nix organization as well caches certain sources for you so that you can rebuild the world when necessary.
1189960	1194880	Yeah, there's, there's like software bundles that have actually disappeared off the Internet.
1194940	1199920	And they still exist in the Nix cache because they were part of some build, you know, 10 years ago.
1199960	1207320	And that's where, like, they actually found one that oh, that actually matches the correct hashes that got locked in some of their lock file.
1208320	1216440	I'd add to that too, there's an honorable mention for some people doing basically builds of old ham radio packages.
1216440	1218660	I'm pretty sure that's Matthew Crowan's project.
1219060	1235460	They're rebuilding just this ancient software where the amateur radio developer in question has either passed away or, you know, has is moving on and doing something else and the software is effectively abandoned, but they've gotten it working and like wine in a completely reproducible way,
1235460	1236820	which is kind of amazing.
1239380	1240100	Cool.
1240100	1245140	So a little bit less kind of enterprise than S bombs.
1245140	1248080	How did you guys get started with Nix out of curiosity?
1250140	1251220	I'll start.
1251300	1251940	Okay.
1253660	1257200	It took a lot of attempts, a lot, a lot of attempts.
1257200	1266100	So if you're listening to what we're saying, or you've attended any other Nix talks, or you've tried to learn Nix, and you're it's like way hidden your head.
1266460	1275660	And, and it's in a pretty, it's a poor state of affairs, the documentation, I believe me, it was a lot worse, five years or seven years ago.
1275840	1278160	And it was incredibly hard to learn.
1278160	1279600	But the appeal was there.
1279600	1290420	So if you're the type that you've hit all the same frustrations we might be talking about, in terms of reproduction, building software reliably, I take part in a lot of open source projects.
1290960	1297080	And I was just frustrated, I couldn't get my tool set reliably, every time I'd revisit my project.
1298160	1303120	Months later, I was like, I need to just spend the time here to learn it.
1303120	1303780	And I did.
1303780	1308620	And I think the strong benefit of Nix is it's got an incredibly vibrant community.
1308620	1314760	And other people with that shared pain of it took me a long time to learn this.
1314760	1321240	So they're willing to white glove you and and hand feed you that pill so that you will learn it.
1321240	1322140	And I think that's okay.
1322140	1332020	Some things can have a really easy on ramp to learn and some things need a little like, let me pill you in and get it because it's such a different shift.
1332020	1334740	It's a seismic shift from how we build software today.
1335260	1341840	So it deviates from you cannot lean on your decades of experience of like how software is built previously.
1342160	1347740	So that seismic shift, sometimes you need that extra hand and that's okay.
1347740	1353660	And so I was about like, 10 years ago, I was working for a company that got acquired by Google.
1353660	1359660	And I was just frustrated with like, the onboarding experience was, here's a bunch of scripts in a readme , go run them.
1359980	1369860	And the likelihood if every script is like 90% success rate, by the time you're like, 10 scripts in, it's like a 30% success rate that you're going to finish that workflow.
1370160	1372460	So I was like, there has to be a better way.
1373260	1379320	And I had to, you know, we had Mac and Linux developers, so you're like auditing what the scene is.
1379460	1389760	And really fast, even about 2015, 16, Nix emerged as like a clear competitor that offered a solution.
1389760	1395820	And that began my journey of curating a development experience for other developers at this company.
1398640	1407320	I came to it, I came from the arch world, and I'm like, hey, I configured this, I broke my machine a few times, and then I fixed it, and I broke it again a few times.
1407320	1409160	That's the story of how you learn Linux.
1409860	1414980	I also came from the Haskell world, so I was already kind of interested in the functional programming paradigm.
1415860	1422200	And then basically just came across Nix at one point, and then what I discovered were super powers.
1423940	1437280	I discovered a set of super powers of being able to move software around, get it working, have it be reliable, have those scripts, even if they fail half the time, at least when they failed, they didn't pollute something.
1437280	1440460	I can go fix them and now not have to start over from the beginning.
1441840	1445560	I found ways to distribute software, to build it, to test it.
1446140	1455780	Built hardware in the loop testing that incorporated these sorts of ideas into like the process, and I found myself just to be way, way more productive.
1456560	1469460	I could run circles around, you know, similar developers who were struggling with, well, oh, my cross compiling tool chain is installed here, and then I broke my machine, I have to rebuild my VM, oh, that SDK is on my other laptop.
1469460	1472240	All those problems kind of went away.
1472240	1479000	It took some expertise and time, but at this point I've got Stockholm syndrome and I can't think of another way or a better way.
1479160	1481260	So this is for me the way.
1481400	1484260	And I'm trying to bring these super powers to the world.
1484260	1488760	Make them so they're not super powers, they're just regular powers that you get.
1488840	1495540	Imagine, you know, before the world, before the age of version control, right, we solved our problems.
1495540	1496400	It was painful.
1496400	1499300	Today we would call it painful, but now we have a super power.
1499300	1500660	We have version control.
1500920	1508200	Same way, like, I have a super power and I'm just trying to kind of bring it to the world and make it available to all.
1509100	1515260	That's going to require improvements, UX improvements, developer experience improvements.
1515260	1522720	I'm working for a company that's, you know, trying to make it easier for non‑X experts to just leverage these super powers.
1523440	1528100	How do we make it so we get more adoption, more integration with other vendors.
1528100	1532540	The whole S‑bomb conversation is really about integration with security vendors.
1533620	1540220	So that's kind of where I came to it was super powers, capabilities, things like that.
1540940	1555320	Well, and we all have these super powers, but many of us use them to just work on like home labs too and deploy things like jelly fin or, you know, various, like, open source softwares that we run in our home labs.
1556020	1557840	I assume you guys use Nix for your home labs.
1557840	1558780	Where are you guys running?
1560160	1563360	Yeah, I think one of the, like, I know we're all AI crazy.
1563360	1575180	I've been having this thought that, I don't want to shill this company too much, but I've been thinking like GitHub code search has been more monumental to me in the past decade than LLMs.
1575180	1577160	Although LLMs, you know, just started.
1577160	1578160	So they might supersede that.
1578160	1579820	You'll see where I'm going with this.
1579820	1585860	Is that having a declarative way for my infrastructure, my home labs, I run two pies, my laptop.
1586800	1591200	There's like some crazy super power that I can browse other people's setups.
1591200	1594060	I was talking to some people here at Nix Vegas.
1594060	1596800	I'm like, oh, you have a cool NeoVim setup.
1596860	1603820	I can just right click, copy like a little snippet and get it exactly on my machine.
1604020	1621480	And browsing everyone's source online and picking what I want, like going shopping and getting, oh, I'd love this and that, where you can't do that when it's an imperative step by step line, because they're likely forgetting the 50 other steps they had to do before that.
1621480	1623500	Install some users or whatever.
1623580	1629020	And nobody really saves their scripts like that anyways, because they run it once and they forget about it.
1629200	1640140	So like code searching and building my infra and my laptop, I've like improved my own developer experience, you know, two orders of magnitude, done it reliably.
1640140	1646620	And it's been fun to like rediscover new tools and people's setups that I'd never do before.
1646640	1648920	So yeah, that's my little story.
1650000	1652760	I used to host, I think, a lot more.
1652760	1655600	I do have like a home lab that was more involved in the past.
1655740	1658120	And sometimes I do more, sometimes less.
1658300	1667740	What I like about tracking all that stuff in a Nix -like way is, well, I can go, oh, I got some new hardware, I'm gonna spin up that thing I had a few years ago.
1667760	1669240	And it spins up.
1669240	1670920	Hey, I might update this or update that.
1670920	1672260	And now it's like I never left it.
1672260	1677100	So I don't have to be so worried about like keeping it alive or the care and feeding of it.
1677100	1684220	I can just be like, oh, I'm going to be busy for, you know, a little while because of, you know, life and family and kids and vacations and who knows what.
1684220	1686680	And I'll be like, oh, the hardware breaks or whatever.
1686920	1687420	Cool.
1687420	1697940	I'll get another piece of hardware, you know, next month and then hook it all up, run up the same, you know, infrastructure that I had already defined declaratively and I'm back to the races.
1698260	1702780	I've done this a few times and actually sometimes forgot that I had changed the underlying hardware.
1702960	1706840	I had these situations where like, oh, wait a minute, that's right, I changed it.
1706840	1711880	But because the config was just rolled right over, it was seamless.
1711980	1720080	So that's another aspect of it is being able to have things declarative means you're a bit more immune from some of these underlying concerns.
1720640	1722300	I've got one to add on to that.
1722300	1728840	I updated three systems from 2411 to 2505 the night before DEF CON started and they still work.
1729040	1731380	So clearly that counts for something.
1731380	1731860	Yeah.
1731920	1736560	There's an amount of joy, too, that I think I never had before in systems before NixOS.
1737000	1741340	And that joy is also like running the exact same laptop as someone else.
1741340	1748700	So I bought a framework laptop and me and my buddy both bought at the same time and we decided to run the exact same config.
1748800	1751180	So on my laptop is his user.
1751380	1757540	He, you know, I'll tell you why he has a user because we run WireGuard and he can SSH into my laptop.
1757540	1759360	That's also been hilarious.
1759360	1760700	So he's got his user.
1760780	1762480	He's got all his applications.
1762640	1765980	It's a bit, you know, it's a few extra gigs because he's never going to run.
1765980	1768840	He uses, let's say, Brave and I never run that.
1768840	1770240	I use Chrome.
1771020	1771800	I've got all of these.
1771800	1774140	So I have his whole profile on my laptop.
1774140	1777380	He's got his whole profile, my profile on his laptop.
1777640	1784260	Sometimes he just SSHs in because he sees me on like the, you know, our private VPN and he sends me something on the wall.
1784260	1786620	And anytime he fixes something, I get it.
1786620	1788860	Anytime I fix something, he gets it.
1788860	1790760	And there's just something fun.
1790760	1793840	Like computers stop being fun for a little bit.
1794040	1797680	And with NixOS it's fun because I think what Tom said, you can go explore.
1797680	1800900	If I mess something up and it breaks his computer, he doesn't care.
1800900	1806800	He can roll back or wait a little bit before he accepts my patch and vice versa.
1806860	1812340	And someone else, I converted a few other people to frameworks and I'm like, use our config.
1812340	1813380	Start with that.
1813380	1815000	And they're running the exact same thing.
1815000	1817480	And it's kind of like a wild idea.
1818000	1823560	And you kind of see it popping up a little bit now with these like, I see people like Amarchi is really popular.
1823560	1828640	And it's like you're running these, people want just like an off the shelf prebuilt solution.
1828640	1836680	And Nix kind of gives you that with this, with a lot stronger guarantees because you're not running bash scripts to set, well, you are running bash scripts to set at all.
1836820	1838320	They're managed bash scripts.
1838320	1839780	They're managed bash scripts.
1839780	1841780	For your collaborative computing environments.
1841780	1842080	Yeah.
1842080	1844020	Nix makes bash scripts immortal.
1844020	1844460	Yeah.
1844460	1845520	But it's fun.
1845520	1851200	It's like, I wouldn't be here talking to you all about Nix if like, I didn't feel joy and like, joy.
1851200	1854360	It's like a weird emotion to be feeling again after a while.
1855360	1857160	But it's, it's, yeah.
1857160	1860300	I mean, we've got, by the way, that thing right over there.
1860420	1861940	You guys know what that is.
1862760	1864900	That is our binary cache server, actually.
1864900	1871560	And it has two, actually three, like ampere ultra nodes configured the exact same way and just got it here.
1872040	1874020	Nginx filled over to the other one.
1875320	1877240	But I mean, it's kind of a similar thing.
1877240	1882380	Like you can configure machines the exact same way and just reproduce that config on another machine.
1884340	1891920	And I mean, yeah, you can do that from like, you know, very small cloud hosts to very large machines like that one.
1893260	1893840	Yeah.
1893980	1901820	I mean, once you take that step towards managing like a few things, then you can start, hey, I want to go manage 100 machines.
1901820	1903660	I want to scale up, I want to scale down.
1903660	1908980	You now have a way of doing that in a very controllable, very understandable, very distributable manner.
1909120	1915360	So if you ever need to do like scale up, either, you know, I did this one time for like training purposes, right?
1915360	1921840	We were supporting, you know, the training of a new model, you know, run a bunch of data, run a bunch of nodes.
1921920	1929140	Well, I have a way to manage and distribute software to a lot of nodes in a very reliable, dependable way.
1929140	1930100	Ready, set, go.
1930140	1936700	And whether that number was two or 200 or 2000, kind of didn't matter to me.
1936700	1940260	That was just a matter of a big enough credit card to support the cost.
1943760	1949600	What sort of uses would you guys think that Nix has for like red teams or CTF players possibly?
1949620	1957060	Like, does this model do you think change anything for how people like play cyber games, basically?
1958000	1964820	So I said in the early in the beginning, right, Nix makes software that can coexist in lots of places.
1965420	1970700	Well, that seems to be a primary need for a lot of people who are doing CTF type work.
1971020	1974920	And maybe you do maybe you recompile everything not to be at slash Nix slash store.
1974920	1979940	Maybe you put it to be slash, you know, my fun tools slash store or wherever you want to put it.
1979940	1980880	Slash temp slash store.
1980880	1982020	Slash temp slash store.
1982020	1982920	Excellent, right?
1982920	1985280	There's all sorts of good stuff you can do.
1985760	1987420	Yeah, we got a question .
1993600	1995960	The question is, do we have an alternative to Kali?
1996600	1998980	There is someone that I forgot the name of it.
1998980	2002280	Someone did start putting together essentially a call the Athena.
2002280	2003360	Is it called Athena?
2003360	2004420	Okay, Athena OS.
2004420	2011280	So someone did put together like a port of a bunch of the similar sorts of tools and things and almost all of them are there.
2012000	2013620	I forgot how complete it was.
2013620	2015540	But I think it's a Nix packages overlay.
2015540	2019100	So again, it can coexist with an existing Nix OS installed just fine.
2019320	2022140	Or I mean, you can also install it on Kali.
2022140	2023060	Yeah.
2024060	2033360	So these ideas are really good for if you're like a, you know, you're doing some sort of thing, you want to make software that is kind of independent from the host.
2033360	2036420	You don't want to necessarily have to live off the land.
2036420	2037820	Sometimes you can if you need to.
2037820	2042420	But sometimes you want to be able to like not interfere with what's out there.
2043200	2046000	And so this provides you a way of doing that.
2048960	2049800	Nothing out there.
2049800	2050680	That was great.
2053790	2054670	Cool.
2055910	2057470	Yeah, let's open it up for questions.
2057470	2058810	We already had one.
2058930	2063310	Anyone burning to know anything about Nix, the ecosystem, the tool set, anything?
2064450	2065090	Yep.
2084870	2086150	Let's repeat the question.
2086150	2086350	Yeah.
2086350	2089970	So the question is, like, what what was the inflection point?
2089970	2091750	There's a lot more recent interest right now.
2091750	2095510	And where's the inflection point coming that like has caused that?
2097390	2103170	Um, I give my take on it is software has become more and more complex.
2103370	2107130	And there's been far more interest in supply chain security.
2107510	2115390	And people are kind of realizing that the like Docker container approach kind of just kicked the can down the road a little bit.
2115430	2120470	So I think that inflection point actually got delayed because of the like the rise of containers.
2121630	2124370	But it was it was on its way either way.
2124390	2128010	And so now we have this, like, rising interest.
2128690	2134710	You know, we're starting to get back to the realm of software where we're gluing together lots of different systems.
2134930	2142470	So now we're gluing together like agents, we're getting like ecosystems, the other like Python for this, but I'm using go for my like systems deployment.
2142590	2145790	And I've got like, you know, rest stuff I need for my performance things.
2145790	2147570	And how do I glue all this software together?
2147570	2149170	How do we make it all work together?
2149330	2152710	And then how do I do that in a way that is still trackable and manageable?
2153890	2158190	How do I give people developer environments, for example, and make them work?
2158190	2163050	I think these all these things are driving more and more Nix interest.
2163670	2177730	And, you know, we were kind of like sitting there ready to go, right to give people what the thing that they needed, even though they didn't know what it was called, or like, you know what it was, but a little bit of exposure, a little bit of understanding of how Nix works,
2177730	2181590	all of a sudden people kind of pattern match like, yep, that's the thing I'm looking for.
2181590	2184330	And I think that's led to a lot of that inflection point growth.
2185250	2189750	Yeah, I think the being burned by Docker for especially project builds.
2189750	2194250	Yeah, that's got a there's probably some chart if you can like graph sentiment there.
2194710	2204630	And there's, I'm seeing still like many people interested in it coming from the personal projects, like local development thing.
2204630	2210950	They never even make it past building the software that they're using.
2210950	2216070	Let's say they're building project A, they never make it to the past for project A can build with Nix.
2216070	2218670	They're just using Nix to pull in what they need.
2218810	2223450	And then they build it the whatever the the normal way they normally do.
2223510	2227690	So they're not even going end to end with Nix that is like exploded.
2227690	2234590	And I think that continues to be the predominant way people are being like introduced and using Nix right now.
2237130	2242170	Yeah, we, we see a lot of interest in adoption right now on the Nix OS side.
2242290	2245130	So being able to like manage like your OS.
2245810	2253090	Other one would be like home manager, people managing like like a dot files configuring their like Vim RCs and Neo Vim and such like that.
2253310	2258650	People wanting to try out stuff, people want to try out things like Wayland and Sway and things like that.
2258650	2262990	And we provide a kind of an easier, less damaging way to try stuff out.
2263470	2265050	That's driven some interest.
2265330	2271990	And then the yeah, the developer experience as well of like, oh, well, I now need to orchestrate 10 different open source projects.
2272030	2285550	Well, you know what, if five of them already have like some Nix files in there, I have a bit more confidence I can actually go do some useful development and contribute usefully without like completely having my host be destroyed by some random script that they need.
2285770	2287450	And you need a starting mass.
2287450	2295130	And I think 20 pre 2015, they're just a like Nix fundamentally worked, but had a lot of gaps.
2295590	2308430	And you need it like there is an there is a inflection point where the community is large enough fix it fixes enough of the other software like software has to be fixed to also work in the Nix paradigm.
2308910	2319210	So if software is has conventions where they're looking for default libraries or whatever, that stuff all has to be patched away, like otherwise it doesn't work.
2319210	2324710	So there is a, it's like the endless yak shave where you're getting things to work with Nix.
2324890	2330830	And people don't, they don't want to go start using a technology if the first thing you have to do is start the yak shave themselves.
2330830	2334430	They're like, I just want the largest package set and start installing things.
2334430	2335730	And that's where we are today.
2335850	2340530	So the community put in a lot of time to fix everything to set up patterns.
2340530	2343370	So all that stuff's mostly taken care of.
2343370	2347250	And if it's not, there's like well established paths on how to do that.
2347510	2355870	You know, when I joined, there was like some really rough edges and also some, you know, like paper cuts that would get you.
2355890	2357130	Surprising paper cuts.
2357130	2363150	And it's just like a nonstop grind to get those down where now you have everything available.
2363150	2364830	It works super smooth.
2365170	2367790	And it's highly reliable and reproducible.
2368930	2372090	And yeah, so shout out to the community because you know, we did that.
2372670	2374750	Speaking of which, anything on the road map?
2374790	2376110	We got one more over here.
2376110	2376810	Let's do that.
2378010	2386530	The question is, what is our workflow for contributing to Nix packages?
2387270	2389430	I do, I do a lot of reviews these days.
2389430	2390750	So Nix packages review.
2390810	2394070	There's a tool that basically does the workflow for you.
2394070	2402950	It builds any of like the required downstream things for your thing and makes it easy to like post results and merge them and stuff like that.
2403730	2411210	If it's something more involved, let's say as I'm working on like a NixOS module or something like that, then you know, the story changes a little bit.
2411210	2415470	But just for simple like package version bumps, Nix packages review is awesome.
2416790	2418450	I put stuff out there.
2418450	2420690	If it gets merged, that's great.
2420690	2425190	If it doesn't, I'll wait for DEF CON 34 and get Morgan to do it next year.
2426150	2428230	Otherwise, you know, Merge before my lunch.
2428230	2429210	Yeah, yeah.
2429210	2432330	Or tomorrow at noon also get some stuff merged.
2432330	2433550	But that's about it.
2444390	2448370	So if I hear the question right, it was about what's the plans on security?
2457800	2460880	Yeah, so the it's in reference to the XZ vulnerability.
2460960	2469160	Actually, interestingly enough, we were not vulnerable to the XZ change due to some of these some of these things.
2469200	2477120	Um, well, I mean, a piece of it is that the way we build our software kind of helps mitigate some of the supply chain problems.
2477260	2480240	But another thing is that it just makes it also more visible.
2480240	2485380	So visibility into potential problems is essentially the first step into security.
2486180	2492220	Next steps for like ecosystem wide security is stuff like, you know, the SBOM things we talked about.
2492780	2500640	It's about kind of I want to get get more funding into the like security team, have that be like a bit more of a robust thing.
2501080	2505400	We have kind of new tools coming out to be able to track security vulnerabilities over time.
2506340	2510200	The STF sovereign tech fund is helping fund some of that stuff.
2510760	2519860	We have other efforts like the fixed output derivation Oracle , the FOD Oracle, that's doing things like making sure that upstream source dependencies don't change out from under us.
2519980	2523900	So there's a there's a lot of efforts that these core primitives allow us to do.
2524180	2534620	And so honestly, we just need, you know, more people interested, more people who can kind of dedicate, you know, some time into, you know, productionizing these things and making them more robust.
2534920	2539240	So I'd say a lot of great potential to make good security improvements.
2539420	2540840	And we always need more help.
2540840	2547440	So if anyone's interested with any of these things, please contact us and we'll kind of point you in the right direction.
2547660	2552760	But there's no way Nix solves the XZ supply chain trial.
2552760	2566600	Like, if you're taking in source, and we don't, we still take in source, and we build that source, and that source has a backdoor, that is fundamentally nothing like goes away because you build it from source.
2566740	2570960	So I like the idea of like, it's oversight, it's visibility.
2571140	2579720	You have a lot of active members looking at that source and highly cognizant of like, what's going on on their systems.
2579720	2583720	And that level of like fidelity breeds that type of like introspection.
2584080	2591260	But I don't want to sell like an overly secure posture here that like no way that could have happened to us.
2595040	2598640	It is so easy to get things into like a lot of packages.
2598760	2612940	I mean, and that was a highly sophisticated attack where the source was, you know, like highly obfuscated, single maintainer, which we now know is like any package said, if you go, I bet if we audit it, this is just me putting my thumb in the air.
2613520	2618060	Like a double digit amount of packages on Nix packages are single authored.
2618060	2628060	So I think there's also like a reckoning of open source and understanding the type of source we take on and the risk tolerance that's there.
2646170	2656270	So I think that's, we've started attaching meta tags to there isn't that sort of requirement now, but at least the packages and you can audit your system, what type of provenance they have.
2656290	2659690	So there's source binary, there's like a handful of different types.
2659690	2667830	I don't know if like, there could be a new meta tag that this source has all its commits GPG verified, right?
2667830	2669330	Does that also solve the exit again?
2669330	2681050	No, like the author was probably signed their commits, you know, they but again, like the ability to specify that on a nodes and it takes away some risk vectors, right?
2681050	2690210	Nothing's going to anyone that sells you some solution that says it's all risk vectors gone, as just meant you're running no software, which is also okay.
2690210	2691750	Analog is great.
2691970	2696370	And I love analog solutions, but it's a totally different problem set.
2696610	2707190	Honorable mention to NixOS system D unit hardening, there actually has been a lot of work into various people trying to lock down system D units for running services.
2707190	2709870	So they only have access to what they need to have access to.
2709950	2717210	There's I think there's a project out there that basically tries a bunch of the options with system D unit hardening until the service stops breaking.
2717850	2719590	So yeah.
2719590	2720110	Yep.
2720110	2721130	Another question?
2722770	2727650	The question is why is everything system D?
2728410	2729810	Because it works.
2729990	2730870	Pragmatic.
2731170	2733690	We I mean, we could do something else.
2733910	2736190	But at the moment, that's what was used.
2736190	2744130	But if there's I know there have been some efforts to try to make it a little bit more agnostic so we can have non system D back ends.
2744130	2753210	I know that some people have also done using Nix to build non NixOS OS's that don't use system D.
2753210	2754570	So that's also possible.
2754670	2758790	But at the moment, the the NixOS distribution is system D based.
2758790	2759450	Yes.
2763430	2765130	Anything on the roadmap?
2765130	2773470	Yeah, I actually wanted to mention something about so on the steering committee, we're kind of developing working on a like overall roadmap.
2773750	2784230	And some of the theme of this thing or the kind of the idea behind it is to have like Nix everywhere, right or have featherweight Nix or we're kind of figuring out what the messaging is.
2784230	2794250	But the idea is kind of like the CTF question from before, like, we want to be able to have, you know, Nix Nix based software run in as many different ways in context as possible.
2794470	2797990	So this can mean stuff like, hey, let's get it working on Windows.
2797990	2800530	Let's make it easier to work inside of Docker.
2800530	2803630	Let's make it easier to work as a standalone tool.
2803630	2818830	What if when you ran cargo build, what really happened is they called into a lib Nix library under the hood, the user has no idea this is going on, but other package managers are calling and using our sandboxing mechanisms, using our store mechanisms or caching mechanisms,
2818830	2820710	which are actually quite robust.
2820910	2830610	And like those get used, make it easier to just like grab a static binary, and like use this in kind of other weird places and embedded devices.
2830610	2832530	What if you're in medical hardware?
2832530	2835090	What if you're going to be on a Raspberry Pi?
2835650	2836670	These sorts of things.
2836670	2840630	So basically how can we get Nix used in as many contexts as possible?
2840630	2843030	Because that's kind of also our strong suit, right?
2843030	2851390	Once you start defining a package set, once you start defining derivations, being able to move them around to different architectures and OSs is one of our superpowers.
2851750	2860650	And so if this kind of general theme or direction is of interest or you've got ideas on like where to take this or how to showcase this, we need some feedback.
2860650	2867970	Let us know as to like, you know, how will this kind of road map fit into either your interest or your plans?
2868210	2873690	And yeah, contact us afterwards or email or just yell at me really loud.
2877260	2879120	What's going on with flakes?
2879920	2886400	So flake stabilization is essentially the biggest hurdle there is fetch tree.
2887100	2893380	Once we get fetch tree kind of like set to go, the big hurdle there is actually get reproducibility.
2893720	2905280	Get reproducibility with smudging and all sorts of kind of nuances with some modules and other like get weirdnesses actually meant that things were not reproducible even though you wanted them to be.
2906180	2912380	With fetch tree stabilize, there are not too many hurdles to getting flakes stabilized.
2913260	2915160	There's like some like command line stuff.
2915160	2916280	There's a few little things with air free.
2916280	2918340	It's actually done a lot of work recently on that.
2918340	2919520	Thank you very much.
2920340	2922200	So it just it takes effort.
2922280	2925060	Right now we don't have anyone full time really working on it.
2925080	2927960	So another thing that we need is just contribution.
2927960	2932060	So if you're interested in developing Nix, any C++ experts out there?
2932100	2932900	Woo!
2934680	2936100	Okay, maybe not.
2936340	2941320	But if you care enough to do some C++ work, again, please let me know.
2941320	2944160	And that's another place where we can use some help.
2944160	2947020	Can I share some thoughts too really quickly?
2947020	2950060	I was a very long holdout for this thing called flakes.
2950280	2951580	Extremely long.
2951580	2954200	I feel like I just gave up and I was like, I'm going to use it.
2954200	2959200	And I think there's validity in that because software is a community.
2959380	2960620	And it's written by authors.
2961000	2967760	And the authors of this software suite have decided they like this thing, and they want to keep pushing it forward.
2968160	2974760	And I think there's, there's some truth that as the authors and maintainers of that they see a vision for where they want to go.
2974760	2978360	And I was like, you know, I gotta, I've liked everything they've produced thus far.
2978360	2980540	So I'm going to trust in the final vision.
2980600	2984760	I still have a little hesitation, like I don't really know what it bought me.
2984900	2987340	But that's where the ongoing investments going.
2987340	2992600	And I want and kind of mentioned that's where I'm spending my time to make it better and contribute to it.
2992600	2998540	So that's like my also addendum to flakes.
2998920	3016340	Actually, to the question from beforehand about the inflection point, I think flakes actually were one of the reasons for growing interest, because they do make it a lot easier to like kind of have a personalized thing to reproduce it, it locks things down nicely and pins things.
3016340	3025580	So I think if you look at a lot of the the recent adoptees of Nix, they tend to be people who are far more coming at it from a flake perspective.
3025580	3027300	So I think that has also helped the inflection point.
3027300	3029100	Flakes or the fancy CLI?
3029100	3031000	It might have been the fancy CLI.
3031840	3032260	Sure.
3032260	3032960	Okay.
3032960	3036360	All right, we have two minutes.
3036360	3037680	One last question.
3037920	3038380	Yes .
3071180	3081060	Yeah, so the question is, you have dead CISNICs that has kind of stepped ahead and done a lot more about like saying, hey, flakes are stable and doing other things.
3081060	3084360	That's, you know, there's the potential there of divergence from upstream.
3084360	3085980	And then how do we deal with that?
3086860	3093640	In some sense, the way I see that is, hey, they're, they're testing the waters.
3093660	3104080	So they're testing the waters, and they're kind of making sure that like that actually provides value, if they're going to run into problems, perhaps sooner, or run into some adoption issues in different ways.
3105080	3106840	And that actually helps.
3106840	3112260	So a lot of the changes that dead CISNICs is doing is also being kind of PR back into upstream.
3112400	3115960	Some are not, it depends on like what that actual change is.
3116520	3118920	But I think overall, it just helps push us along.
3118920	3124800	It's a forcing function, just like any other fork that would kind of, you know, force us to get our act together.
3124800	3127580	So I'm actually in some sense in favor of that.
3127620	3129200	But you'd have to be careful a little bit.
3129200	3131840	And, you know, it's a that's open source.
3132120	3134460	Okay, I think the community it solves itself.
3134620	3135780	They're moving it forward.
3135780	3139540	If it's a positive addition, and it's pulling everyone there.
3140540	3141700	That makes sense.
3141700	3142780	And we're all going to use it.
3142780	3148180	And if people don't want to pay for it, they'll probably clone it or like copy it and do the open source variant.
3148380	3162580	If it's not a worthwhile addition, and it's only useful to a subset of enterprise customers and not the like hundreds of thousands or whatever size of community that uses Nix, it probably won't be relied on as a feature in Nix packages.
3162920	3176230	So, you know, I kind of welcome capitalist markets to improve the state of Nix and we'll kind of reap it back into the open source implementation of the best parts.
3178960	3180540	Thank you guys.
