1 00:00:00,000 --> 00:00:08,800 So, yes, this is the first, actually, DEF CON talk on what's technically an official DEF CON stage about Nix. 2 00:00:09,040 --> 00:00:11,220 So, yeah, just to give some intro. 3 00:00:11,220 --> 00:00:11,680 Yeah. 4 00:00:11,880 --> 00:00:13,360 Give it up for Nix. 5 00:00:16,440 --> 00:00:19,180 So yeah, we're going to talk about the Nix ecosystem. 6 00:00:19,180 --> 00:00:23,180 This talk is called rebuild the world because that's kind of what Nix is trying to do. 7 00:00:24,100 --> 00:00:28,500 Nix is, well, it's a lot of things to a lot of people. 8 00:00:28,920 --> 00:00:29,980 Let's start with intro. 9 00:00:29,980 --> 00:00:31,440 So I'm Morgan Jones. 10 00:00:31,460 --> 00:00:34,520 Hi, I'm Thomas Breckney. 11 00:00:34,520 --> 00:00:36,440 You might know me as Tom Breck. 12 00:00:36,440 --> 00:00:39,880 I've been doing Nix stuff for more than a decade now. 13 00:00:40,020 --> 00:00:43,740 And probably have touched a lot of different portions of the ecosystem. 14 00:00:44,080 --> 00:00:56,780 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. 15 00:00:57,860 --> 00:00:59,140 Hi, I'm Fareed. 16 00:00:59,140 --> 00:01:07,880 I don't professionally work on Nix, but I've used it not quite a decade, but over half a decade at least. 17 00:01:07,880 --> 00:01:17,680 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. 18 00:01:17,960 --> 00:01:18,420 Yeah. 19 00:01:18,780 --> 00:01:20,900 And yeah, just a bit about myself. 20 00:01:20,900 --> 00:01:23,020 So I'm Morgan Jones. 21 00:01:23,120 --> 00:01:33,040 I'm a Nix packages committer and I've been working at Viasat on reproducible builds of various bits of software with Nix. 22 00:01:33,080 --> 00:01:36,820 And I've been using it for the past, I think eight or so years at this point. 23 00:01:37,600 --> 00:01:47,760 And yeah, I got into it for Raspberry Pi project in college and it's kind of just completely changed how I deploy Linux. 24 00:01:47,760 --> 00:01:49,960 So glad to have these guys on stage. 25 00:01:50,580 --> 00:01:51,100 All right. 26 00:01:51,100 --> 00:02:00,540 So let's kind of talk, let's talk, I guess the, so Nix is an ecosystem that has like three major components. 27 00:02:00,540 --> 00:02:03,080 There's Nix, the package manager and language. 28 00:02:03,080 --> 00:02:05,600 There's Nix packages, the package sets. 29 00:02:05,900 --> 00:02:07,600 There's Nix OS, the operating system. 30 00:02:07,600 --> 00:02:10,680 Can you guys kind of talk about like, what's the difference? 31 00:02:10,700 --> 00:02:13,340 Why should people care that there is a difference? 32 00:02:15,520 --> 00:02:16,060 Yeah. 33 00:02:16,200 --> 00:02:23,520 So the way I think about it is actually a little bit backwards than you might have in other, other like ecosystems or distros. 34 00:02:24,100 --> 00:02:29,800 So in this ecosystem, Nix, the package manager essentially came first. 35 00:02:29,880 --> 00:02:38,540 And the original idea was for it to be a package manager or a software distribution mechanism that would work anywhere. 36 00:02:38,540 --> 00:02:40,660 It would work on other distros. 37 00:02:40,780 --> 00:02:50,260 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. 38 00:02:50,500 --> 00:02:51,860 Well, that came with some requirements. 39 00:02:51,860 --> 00:02:54,200 We had to actually like rebuild software. 40 00:02:54,200 --> 00:02:56,820 We had to have a way to like manage all these build recipes. 41 00:02:56,820 --> 00:02:57,000 Right. 42 00:02:57,000 --> 00:02:58,940 So that's where Nix packages came from. 43 00:02:59,020 --> 00:03:04,640 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? 44 00:03:04,640 --> 00:03:08,000 So then that's where like the OS as a distro came from. 45 00:03:08,620 --> 00:03:10,020 Which, you know, is good. 46 00:03:10,280 --> 00:03:13,640 A lot of people come to the ecosystem through the OS. 47 00:03:14,020 --> 00:03:20,560 But understanding that it originally came from that like package manager that can kind of coexist anywhere is important to keep in mind. 48 00:03:20,560 --> 00:03:23,960 Because it also highlights some of the big benefits you get out of it. 49 00:03:26,660 --> 00:03:32,180 Sorry, and the question was like, which of the three do you think ultimately is the most important to or? 50 00:03:32,180 --> 00:03:36,480 More like kind of what's the notable things that are important about each? 51 00:03:37,180 --> 00:03:45,920 Yeah, like the most important thing to me ultimately, and I touched on this on a talk earlier, is that there's a graph. 52 00:03:45,920 --> 00:03:55,580 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. 53 00:03:55,920 --> 00:04:01,000 And I think we use the word packages , Nix, language operating, they're all like fancy words. 54 00:04:01,000 --> 00:04:13,380 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. 55 00:04:13,380 --> 00:04:15,560 That is like one primitive you have. 56 00:04:15,560 --> 00:04:17,560 So it's like the series of primitives. 57 00:04:17,820 --> 00:04:20,380 And from that, you get all this cool stuff. 58 00:04:20,500 --> 00:04:35,480 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. 59 00:04:35,480 --> 00:04:37,920 And it really doesn't matter which way you come in. 60 00:04:38,900 --> 00:04:40,620 So why not just use Docker? 61 00:04:41,840 --> 00:04:46,240 Oh, you're giving me eyes like you want to go. 62 00:04:46,240 --> 00:04:46,660 Sure. 63 00:04:46,660 --> 00:04:48,620 I have also a lot of you can go first. 64 00:04:48,620 --> 00:04:50,040 I have so much pain here. 65 00:04:50,060 --> 00:05:02,080 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. 66 00:05:02,240 --> 00:05:05,040 That's roughly kind of like the approach Docker took. 67 00:05:05,360 --> 00:05:08,440 Notably represented as like their Docker file. 68 00:05:08,440 --> 00:05:20,160 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. 69 00:05:20,160 --> 00:05:23,020 So they took a very like hands off agnostic approach. 70 00:05:23,020 --> 00:05:25,240 We're not going to solve the packaging problem. 71 00:05:25,740 --> 00:05:29,400 What ended up happening is then I mean, that works. 72 00:05:29,400 --> 00:05:30,720 It works pretty well. 73 00:05:30,720 --> 00:05:33,500 It works very well as a leaf mechanism. 74 00:05:33,620 --> 00:05:48,920 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. 75 00:05:49,480 --> 00:05:59,360 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? 76 00:05:59,360 --> 00:06:02,540 It's to make software reusable in more places. 77 00:06:02,580 --> 00:06:04,140 That's why you package something. 78 00:06:04,140 --> 00:06:06,060 Otherwise, what would be the point? 79 00:06:06,580 --> 00:06:13,660 And let's say you like deploy a library of some kind or an SDK. 80 00:06:13,880 --> 00:06:29,160 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, 81 00:06:29,160 --> 00:06:29,660 right? 82 00:06:29,660 --> 00:06:34,500 Because you're gluing together a larger system and these things have to work together. 83 00:06:34,500 --> 00:06:41,020 You can't say, hey, from three different containers, smush them all together and now make them all work. 84 00:06:41,020 --> 00:06:43,340 You're very likely going to have problems. 85 00:06:43,400 --> 00:06:45,260 Because those aren't packages. 86 00:06:45,660 --> 00:07:01,380 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. 87 00:07:01,580 --> 00:07:05,600 So it's not really why not use Docker. 88 00:07:05,600 --> 00:07:06,380 I mean, use Docker. 89 00:07:06,380 --> 00:07:06,780 It's great. 90 00:07:06,780 --> 00:07:10,540 It's awesome for orchestration, for final artifact delivery. 91 00:07:10,760 --> 00:07:13,100 There's all sorts of like support for it. 92 00:07:13,300 --> 00:07:16,040 But don't, it's not a packaging system. 93 00:07:16,260 --> 00:07:17,780 It's not a package ecosystem. 94 00:07:17,780 --> 00:07:19,980 It's not a configuration management ecosystem. 95 00:07:20,080 --> 00:07:23,160 It's an artifact distribution mechanism. 96 00:07:23,740 --> 00:07:26,420 So go ahead and use that and also Nix works well with it. 97 00:07:26,420 --> 00:07:28,840 You can use Nix to build your Docker containers. 98 00:07:28,920 --> 00:07:33,780 Those CI containers get split at the other end, use them, integrate with them. 99 00:07:33,780 --> 00:07:36,940 So I kind of don't see it as Nix versus Docker. 100 00:07:36,940 --> 00:07:38,600 I see it as Nix and Docker. 101 00:07:39,900 --> 00:07:45,540 But also please don't ask me to use a Docker image to develop in your project. 102 00:07:45,780 --> 00:07:53,820 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. 103 00:07:53,820 --> 00:07:56,180 I want to debug your app, the application. 104 00:07:56,180 --> 00:07:57,160 Oh, wait, okay. 105 00:07:57,160 --> 00:08:02,560 You know, like, remember the port mapping, there's a NAT bridge, maybe open up on the host port. 106 00:08:02,860 --> 00:08:06,440 It's like, Nix boils that all away. 107 00:08:06,440 --> 00:08:14,860 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. 108 00:08:15,500 --> 00:08:22,060 And the one of the largest takeaways I think is the conflation between immutability and reproduction. 109 00:08:22,500 --> 00:08:24,840 So Docker is great in that it's immutable. 110 00:08:24,860 --> 00:08:33,660 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. 111 00:08:33,660 --> 00:08:35,620 Like the master CD. 112 00:08:35,720 --> 00:08:40,420 But I'm sure many of us have had that experience where you go to change something in it and it breaks. 113 00:08:40,640 --> 00:08:43,180 And nothing about that experience is reproducible. 114 00:08:43,180 --> 00:08:47,560 And there's like tons of blog posts on like, well, this is how you make it reproducible. 115 00:08:47,560 --> 00:08:50,180 And you got to bolt on additional patterns. 116 00:08:50,760 --> 00:08:58,280 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. 117 00:08:58,460 --> 00:09:00,940 So I think that's like why not. 118 00:09:00,940 --> 00:09:05,460 If I wanted to give you a sales pitch on why not use Docker from that angle that would be the case. 119 00:09:06,400 --> 00:09:13,240 Actually I have another piece which was to switch the game around and using Nix inside of images. 120 00:09:13,580 --> 00:09:20,740 We actually see that if you look at the Docker debugger that Docker put out, it's using Nix inside the hood. 121 00:09:20,760 --> 00:09:35,800 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. 122 00:09:35,800 --> 00:09:40,480 Well, what's a great way to bring in new packages to an ecosystem in a non-conflicting manner? 123 00:09:40,480 --> 00:09:42,780 That was the original use case for Nix. 124 00:09:42,780 --> 00:09:51,300 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. 125 00:09:51,300 --> 00:10:01,980 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. 126 00:10:01,980 --> 00:10:05,320 Like the entire Docker image was just to run Vim. 127 00:10:05,480 --> 00:10:17,660 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. 128 00:10:20,040 --> 00:10:24,420 On a related note, so let's talk kind of like SBOM stuff. 129 00:10:24,580 --> 00:10:46,480 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? 130 00:10:48,420 --> 00:11:10,740 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. 131 00:11:10,740 --> 00:11:13,300 And I think people attach provenance to like versions. 132 00:11:13,300 --> 00:11:20,500 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. 133 00:11:20,500 --> 00:11:26,320 That is, feels, you know, and it's like, oh, incredibly granular to them. 134 00:11:27,120 --> 00:11:32,580 But a major, you know, even a minor version and semantic versioning, it's like, what is the commit at that level? 135 00:11:32,580 --> 00:11:37,520 And what is the commit at that level and what dependency did it take on? 136 00:11:38,240 --> 00:11:48,720 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? 137 00:11:48,760 --> 00:11:58,600 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. 138 00:12:01,830 --> 00:12:06,490 So I would actually say that that specificity is actually a dual edge sort. 139 00:12:06,490 --> 00:12:18,150 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. 140 00:12:18,150 --> 00:12:25,070 They don't care about like, who's using NICs and what commit is this and what's this transit of that. 141 00:12:25,070 --> 00:12:27,430 Like, one, you know, we're not big enough yet for that. 142 00:12:27,430 --> 00:12:30,230 But also like, they're not doing that for other ecosystems either. 143 00:12:30,230 --> 00:12:32,730 They are doing it at that fuzzy level. 144 00:12:33,110 --> 00:12:39,710 So I think the ultimate outcome we're probably going to get to is like, we have really good S bombs today. 145 00:12:39,710 --> 00:12:41,330 We have them by construction. 146 00:12:41,330 --> 00:12:48,630 We actually start with making an S bomb super and then we use it to build our software. 147 00:12:48,830 --> 00:12:49,130 Right? 148 00:12:49,130 --> 00:12:50,090 Rather than the other way around. 149 00:12:50,090 --> 00:12:53,050 We don't just build the software and then go try to extract it all out. 150 00:12:53,070 --> 00:12:54,630 We actually started with that. 151 00:12:54,630 --> 00:12:59,250 So 20 years ago, we didn't call them S bombs, we called them derivations. 152 00:12:59,410 --> 00:13:04,290 But bad naming aside, that means we're correct by construction. 153 00:13:05,490 --> 00:13:08,270 Next thing we got to do now is actually weaken it. 154 00:13:08,730 --> 00:13:15,650 We now have to be able to create an S bomb that includes that ultra precise, you know, identifier. 155 00:13:15,650 --> 00:13:18,170 But we also need to have a really fuzzy identifier. 156 00:13:18,170 --> 00:13:26,870 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. 157 00:13:26,870 --> 00:13:29,690 Something like a CPE , something like a package URL. 158 00:13:30,370 --> 00:13:34,270 And for the most part, we could probably get that out of Nix packages today . 159 00:13:35,070 --> 00:13:42,510 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. 160 00:13:42,990 --> 00:14:01,150 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, 161 00:14:01,150 --> 00:14:05,610 they'll send you alerts and updates and vulnerability information and all that stuff. 162 00:14:05,610 --> 00:14:11,530 And now you have really easy integration into like a lot of the corporate environment, a lot of the organizational environments. 163 00:14:11,550 --> 00:14:16,130 Because now you have like both the precision and integration. 164 00:14:16,450 --> 00:14:19,470 But there's an opportunity to scan the source. 165 00:14:19,470 --> 00:14:32,950 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. 166 00:14:32,950 --> 00:14:39,370 Every distribution adds some sort of patches to make it work with other package sets in that ecosystem. 167 00:14:39,630 --> 00:14:48,290 So you need having the ability to go to source and then do the analysis is incredibly factual. 168 00:14:48,330 --> 00:14:53,550 Like you know are you vulnerable to this CV because they might have already patched that CV but kept the version number. 169 00:14:54,170 --> 00:15:04,910 And the Nix S bomb lets you get the source exactly for every single package you've installed. 170 00:15:05,050 --> 00:15:11,590 And you one could follow and then audit the source and see if you're vulnerable. 171 00:15:11,810 --> 00:15:18,630 But I think like that's such a leap from where we are today that we're not there yet. 172 00:15:18,630 --> 00:15:21,890 But because yeah, a few other technologies offer that capability. 173 00:15:21,890 --> 00:15:25,750 So what I'm hearing is that we need to add a static analysis phase to standard ENV. 174 00:15:28,770 --> 00:15:30,590 Well, maybe not quite that. 175 00:15:30,590 --> 00:15:33,510 But you have to be able to do like all of these things. 176 00:15:33,510 --> 00:15:36,570 You have to be able to expose the power to go dig into source. 177 00:15:36,570 --> 00:15:39,730 You have to expose the power to understand the full graph. 178 00:15:39,730 --> 00:15:41,710 You have to be able to make this integratable. 179 00:15:42,730 --> 00:15:56,370 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? 180 00:15:56,370 --> 00:16:00,150 We can't actually expose that power today as easily. 181 00:16:00,150 --> 00:16:01,390 So that needs a little bit of tooling. 182 00:16:01,390 --> 00:16:02,670 It needs integration. 183 00:16:03,170 --> 00:16:05,410 It needs like ecosystem improvements. 184 00:16:05,770 --> 00:16:07,770 But I mean, the potential is there. 185 00:16:07,770 --> 00:16:09,570 It just has to be realized. 186 00:16:10,310 --> 00:16:11,070 Yeah. 187 00:16:11,070 --> 00:16:22,410 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. 188 00:16:22,750 --> 00:16:29,570 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. 189 00:16:29,570 --> 00:16:34,170 So they've solved that by really clamping down on the compatibility matrix story. 190 00:16:34,170 --> 00:16:42,890 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. 191 00:16:43,050 --> 00:16:49,290 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. 192 00:16:49,650 --> 00:16:52,030 So I think that's an important caveat. 193 00:16:52,030 --> 00:17:01,250 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. 194 00:17:01,250 --> 00:17:11,290 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. 195 00:17:13,310 --> 00:17:21,370 Speaking of trust a little bit, can you guys talk about maybe, like, a couple things about Nick's trust model. 196 00:17:21,370 --> 00:17:30,330 Like if you're downloading packages from somewhere and substituting them as the term kind of is, what are you trusting? 197 00:17:30,330 --> 00:17:36,630 What is, what are you kind of assuming about where you're grabbing the packages and what packages they are? 198 00:17:39,140 --> 00:17:59,620 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. 199 00:17:59,680 --> 00:18:02,080 That cache is a optimization. 200 00:18:02,720 --> 00:18:04,480 You can go rebuild all those yourself. 201 00:18:04,480 --> 00:18:08,420 You just turn off the substitutor and you will essentially rebuild the world. 202 00:18:08,860 --> 00:18:16,280 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. 203 00:18:16,680 --> 00:18:17,920 That's a great way to audit. 204 00:18:17,920 --> 00:18:20,300 That means auditability is right at your fingertips. 205 00:18:20,560 --> 00:18:22,700 But for practicality you want to substitute. 206 00:18:22,820 --> 00:18:29,980 And by default what you're trusting is that public key that is then signing everything that the build farm produces. 207 00:18:29,980 --> 00:18:35,200 If you work at a company, let's say you have a policy that you also have to rebuild from source, cool. 208 00:18:35,200 --> 00:18:37,900 You rebuild everything from source the way I just mentioned. 209 00:18:37,900 --> 00:18:42,880 You sign it with your own public key, public private key pair and then that's what you trust. 210 00:18:42,980 --> 00:18:56,380 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. 211 00:18:57,100 --> 00:19:00,880 And Nix takes a lot of extra steps to be able to rebuild the world. 212 00:19:00,880 --> 00:19:04,900 Maybe not as much as, like, foundations like the Software Heritage Foundation. 213 00:19:05,160 --> 00:19:13,220 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. 214 00:19:13,260 --> 00:19:24,420 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. 215 00:19:24,420 --> 00:19:28,320 So that is the promise Nix gives you only if the source exists. 216 00:19:28,780 --> 00:19:36,220 There's work streams by the Software Heritage Foundation where they're like, kind of like the Internet Archive, archiving the world alongside Nix. 217 00:19:36,220 --> 00:19:39,420 And they're using Nix here to do that. 218 00:19:39,440 --> 00:19:49,280 The Nix organization as well caches certain sources for you so that you can rebuild the world when necessary. 219 00:19:49,960 --> 00:19:54,880 Yeah, there's, there's like software bundles that have actually disappeared off the Internet. 220 00:19:54,940 --> 00:19:59,920 And they still exist in the Nix cache because they were part of some build, you know, 10 years ago. 221 00:19:59,960 --> 00:20:07,320 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. 222 00:20:08,320 --> 00:20:16,440 I'd add to that too, there's an honorable mention for some people doing basically builds of old ham radio packages. 223 00:20:16,440 --> 00:20:18,660 I'm pretty sure that's Matthew Crowan's project. 224 00:20:19,060 --> 00:20:35,460 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, 225 00:20:35,460 --> 00:20:36,820 which is kind of amazing. 226 00:20:39,380 --> 00:20:40,100 Cool. 227 00:20:40,100 --> 00:20:45,140 So a little bit less kind of enterprise than S bombs. 228 00:20:45,140 --> 00:20:48,080 How did you guys get started with Nix out of curiosity? 229 00:20:50,140 --> 00:20:51,220 I'll start. 230 00:20:51,300 --> 00:20:51,940 Okay. 231 00:20:53,660 --> 00:20:57,200 It took a lot of attempts, a lot, a lot of attempts. 232 00:20:57,200 --> 00:21:06,100 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. 233 00:21:06,460 --> 00:21:15,660 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. 234 00:21:15,840 --> 00:21:18,160 And it was incredibly hard to learn. 235 00:21:18,160 --> 00:21:19,600 But the appeal was there. 236 00:21:19,600 --> 00:21:30,420 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. 237 00:21:30,960 --> 00:21:37,080 And I was just frustrated, I couldn't get my tool set reliably, every time I'd revisit my project. 238 00:21:38,160 --> 00:21:43,120 Months later, I was like, I need to just spend the time here to learn it. 239 00:21:43,120 --> 00:21:43,780 And I did. 240 00:21:43,780 --> 00:21:48,620 And I think the strong benefit of Nix is it's got an incredibly vibrant community. 241 00:21:48,620 --> 00:21:54,760 And other people with that shared pain of it took me a long time to learn this. 242 00:21:54,760 --> 00:22:01,240 So they're willing to white glove you and and hand feed you that pill so that you will learn it. 243 00:22:01,240 --> 00:22:02,140 And I think that's okay. 244 00:22:02,140 --> 00:22:12,020 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. 245 00:22:12,020 --> 00:22:14,740 It's a seismic shift from how we build software today. 246 00:22:15,260 --> 00:22:21,840 So it deviates from you cannot lean on your decades of experience of like how software is built previously. 247 00:22:22,160 --> 00:22:27,740 So that seismic shift, sometimes you need that extra hand and that's okay. 248 00:22:27,740 --> 00:22:33,660 And so I was about like, 10 years ago, I was working for a company that got acquired by Google. 249 00:22:33,660 --> 00:22:39,660 And I was just frustrated with like, the onboarding experience was, here's a bunch of scripts in a readme , go run them. 250 00:22:39,980 --> 00:22:49,860 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. 251 00:22:50,160 --> 00:22:52,460 So I was like, there has to be a better way. 252 00:22:53,260 --> 00:22:59,320 And I had to, you know, we had Mac and Linux developers, so you're like auditing what the scene is. 253 00:22:59,460 --> 00:23:09,760 And really fast, even about 2015, 16, Nix emerged as like a clear competitor that offered a solution. 254 00:23:09,760 --> 00:23:15,820 And that began my journey of curating a development experience for other developers at this company. 255 00:23:18,640 --> 00:23:27,320 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. 256 00:23:27,320 --> 00:23:29,160 That's the story of how you learn Linux. 257 00:23:29,860 --> 00:23:34,980 I also came from the Haskell world, so I was already kind of interested in the functional programming paradigm. 258 00:23:35,860 --> 00:23:42,200 And then basically just came across Nix at one point, and then what I discovered were super powers. 259 00:23:43,940 --> 00:23:57,280 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. 260 00:23:57,280 --> 00:24:00,460 I can go fix them and now not have to start over from the beginning. 261 00:24:01,840 --> 00:24:05,560 I found ways to distribute software, to build it, to test it. 262 00:24:06,140 --> 00:24:15,780 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. 263 00:24:16,560 --> 00:24:29,460 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. 264 00:24:29,460 --> 00:24:32,240 All those problems kind of went away. 265 00:24:32,240 --> 00:24:39,000 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. 266 00:24:39,160 --> 00:24:41,260 So this is for me the way. 267 00:24:41,400 --> 00:24:44,260 And I'm trying to bring these super powers to the world. 268 00:24:44,260 --> 00:24:48,760 Make them so they're not super powers, they're just regular powers that you get. 269 00:24:48,840 --> 00:24:55,540 Imagine, you know, before the world, before the age of version control, right, we solved our problems. 270 00:24:55,540 --> 00:24:56,400 It was painful. 271 00:24:56,400 --> 00:24:59,300 Today we would call it painful, but now we have a super power. 272 00:24:59,300 --> 00:25:00,660 We have version control. 273 00:25:00,920 --> 00:25:08,200 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. 274 00:25:09,100 --> 00:25:15,260 That's going to require improvements, UX improvements, developer experience improvements. 275 00:25:15,260 --> 00:25:22,720 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. 276 00:25:23,440 --> 00:25:28,100 How do we make it so we get more adoption, more integration with other vendors. 277 00:25:28,100 --> 00:25:32,540 The whole S‑bomb conversation is really about integration with security vendors. 278 00:25:33,620 --> 00:25:40,220 So that's kind of where I came to it was super powers, capabilities, things like that. 279 00:25:40,940 --> 00:25:55,320 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. 280 00:25:56,020 --> 00:25:57,840 I assume you guys use Nix for your home labs. 281 00:25:57,840 --> 00:25:58,780 Where are you guys running? 282 00:26:00,160 --> 00:26:03,360 Yeah, I think one of the, like, I know we're all AI crazy. 283 00:26:03,360 --> 00:26:15,180 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. 284 00:26:15,180 --> 00:26:17,160 Although LLMs, you know, just started. 285 00:26:17,160 --> 00:26:18,160 So they might supersede that. 286 00:26:18,160 --> 00:26:19,820 You'll see where I'm going with this. 287 00:26:19,820 --> 00:26:25,860 Is that having a declarative way for my infrastructure, my home labs, I run two pies, my laptop. 288 00:26:26,800 --> 00:26:31,200 There's like some crazy super power that I can browse other people's setups. 289 00:26:31,200 --> 00:26:34,060 I was talking to some people here at Nix Vegas. 290 00:26:34,060 --> 00:26:36,800 I'm like, oh, you have a cool NeoVim setup. 291 00:26:36,860 --> 00:26:43,820 I can just right click, copy like a little snippet and get it exactly on my machine. 292 00:26:44,020 --> 00:27:01,480 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. 293 00:27:01,480 --> 00:27:03,500 Install some users or whatever. 294 00:27:03,580 --> 00:27:09,020 And nobody really saves their scripts like that anyways, because they run it once and they forget about it. 295 00:27:09,200 --> 00:27:20,140 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. 296 00:27:20,140 --> 00:27:26,620 And it's been fun to like rediscover new tools and people's setups that I'd never do before. 297 00:27:26,640 --> 00:27:28,920 So yeah, that's my little story. 298 00:27:30,000 --> 00:27:32,760 I used to host, I think, a lot more. 299 00:27:32,760 --> 00:27:35,600 I do have like a home lab that was more involved in the past. 300 00:27:35,740 --> 00:27:38,120 And sometimes I do more, sometimes less. 301 00:27:38,300 --> 00:27:47,740 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. 302 00:27:47,760 --> 00:27:49,240 And it spins up. 303 00:27:49,240 --> 00:27:50,920 Hey, I might update this or update that. 304 00:27:50,920 --> 00:27:52,260 And now it's like I never left it. 305 00:27:52,260 --> 00:27:57,100 So I don't have to be so worried about like keeping it alive or the care and feeding of it. 306 00:27:57,100 --> 00:28:04,220 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. 307 00:28:04,220 --> 00:28:06,680 And I'll be like, oh, the hardware breaks or whatever. 308 00:28:06,920 --> 00:28:07,420 Cool. 309 00:28:07,420 --> 00:28:17,940 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. 310 00:28:18,260 --> 00:28:22,780 I've done this a few times and actually sometimes forgot that I had changed the underlying hardware. 311 00:28:22,960 --> 00:28:26,840 I had these situations where like, oh, wait a minute, that's right, I changed it. 312 00:28:26,840 --> 00:28:31,880 But because the config was just rolled right over, it was seamless. 313 00:28:31,980 --> 00:28:40,080 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. 314 00:28:40,640 --> 00:28:42,300 I've got one to add on to that. 315 00:28:42,300 --> 00:28:48,840 I updated three systems from 2411 to 2505 the night before DEF CON started and they still work. 316 00:28:49,040 --> 00:28:51,380 So clearly that counts for something. 317 00:28:51,380 --> 00:28:51,860 Yeah. 318 00:28:51,920 --> 00:28:56,560 There's an amount of joy, too, that I think I never had before in systems before NixOS. 319 00:28:57,000 --> 00:29:01,340 And that joy is also like running the exact same laptop as someone else. 320 00:29:01,340 --> 00:29:08,700 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. 321 00:29:08,800 --> 00:29:11,180 So on my laptop is his user. 322 00:29:11,380 --> 00:29:17,540 He, you know, I'll tell you why he has a user because we run WireGuard and he can SSH into my laptop. 323 00:29:17,540 --> 00:29:19,360 That's also been hilarious. 324 00:29:19,360 --> 00:29:20,700 So he's got his user. 325 00:29:20,780 --> 00:29:22,480 He's got all his applications. 326 00:29:22,640 --> 00:29:25,980 It's a bit, you know, it's a few extra gigs because he's never going to run. 327 00:29:25,980 --> 00:29:28,840 He uses, let's say, Brave and I never run that. 328 00:29:28,840 --> 00:29:30,240 I use Chrome. 329 00:29:31,020 --> 00:29:31,800 I've got all of these. 330 00:29:31,800 --> 00:29:34,140 So I have his whole profile on my laptop. 331 00:29:34,140 --> 00:29:37,380 He's got his whole profile, my profile on his laptop. 332 00:29:37,640 --> 00:29:44,260 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. 333 00:29:44,260 --> 00:29:46,620 And anytime he fixes something, I get it. 334 00:29:46,620 --> 00:29:48,860 Anytime I fix something, he gets it. 335 00:29:48,860 --> 00:29:50,760 And there's just something fun. 336 00:29:50,760 --> 00:29:53,840 Like computers stop being fun for a little bit. 337 00:29:54,040 --> 00:29:57,680 And with NixOS it's fun because I think what Tom said, you can go explore. 338 00:29:57,680 --> 00:30:00,900 If I mess something up and it breaks his computer, he doesn't care. 339 00:30:00,900 --> 00:30:06,800 He can roll back or wait a little bit before he accepts my patch and vice versa. 340 00:30:06,860 --> 00:30:12,340 And someone else, I converted a few other people to frameworks and I'm like, use our config. 341 00:30:12,340 --> 00:30:13,380 Start with that. 342 00:30:13,380 --> 00:30:15,000 And they're running the exact same thing. 343 00:30:15,000 --> 00:30:17,480 And it's kind of like a wild idea. 344 00:30:18,000 --> 00:30:23,560 And you kind of see it popping up a little bit now with these like, I see people like Amarchi is really popular. 345 00:30:23,560 --> 00:30:28,640 And it's like you're running these, people want just like an off the shelf prebuilt solution. 346 00:30:28,640 --> 00:30:36,680 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. 347 00:30:36,820 --> 00:30:38,320 They're managed bash scripts. 348 00:30:38,320 --> 00:30:39,780 They're managed bash scripts. 349 00:30:39,780 --> 00:30:41,780 For your collaborative computing environments. 350 00:30:41,780 --> 00:30:42,080 Yeah. 351 00:30:42,080 --> 00:30:44,020 Nix makes bash scripts immortal. 352 00:30:44,020 --> 00:30:44,460 Yeah. 353 00:30:44,460 --> 00:30:45,520 But it's fun. 354 00:30:45,520 --> 00:30:51,200 It's like, I wouldn't be here talking to you all about Nix if like, I didn't feel joy and like, joy. 355 00:30:51,200 --> 00:30:54,360 It's like a weird emotion to be feeling again after a while. 356 00:30:55,360 --> 00:30:57,160 But it's, it's, yeah. 357 00:30:57,160 --> 00:31:00,300 I mean, we've got, by the way, that thing right over there. 358 00:31:00,420 --> 00:31:01,940 You guys know what that is. 359 00:31:02,760 --> 00:31:04,900 That is our binary cache server, actually. 360 00:31:04,900 --> 00:31:11,560 And it has two, actually three, like ampere ultra nodes configured the exact same way and just got it here. 361 00:31:12,040 --> 00:31:14,020 Nginx filled over to the other one. 362 00:31:15,320 --> 00:31:17,240 But I mean, it's kind of a similar thing. 363 00:31:17,240 --> 00:31:22,380 Like you can configure machines the exact same way and just reproduce that config on another machine. 364 00:31:24,340 --> 00:31:31,920 And I mean, yeah, you can do that from like, you know, very small cloud hosts to very large machines like that one. 365 00:31:33,260 --> 00:31:33,840 Yeah. 366 00:31:33,980 --> 00:31:41,820 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. 367 00:31:41,820 --> 00:31:43,660 I want to scale up, I want to scale down. 368 00:31:43,660 --> 00:31:48,980 You now have a way of doing that in a very controllable, very understandable, very distributable manner. 369 00:31:49,120 --> 00:31:55,360 So if you ever need to do like scale up, either, you know, I did this one time for like training purposes, right? 370 00:31:55,360 --> 00:32:01,840 We were supporting, you know, the training of a new model, you know, run a bunch of data, run a bunch of nodes. 371 00:32:01,920 --> 00:32:09,140 Well, I have a way to manage and distribute software to a lot of nodes in a very reliable, dependable way. 372 00:32:09,140 --> 00:32:10,100 Ready, set, go. 373 00:32:10,140 --> 00:32:16,700 And whether that number was two or 200 or 2000, kind of didn't matter to me. 374 00:32:16,700 --> 00:32:20,260 That was just a matter of a big enough credit card to support the cost. 375 00:32:23,760 --> 00:32:29,600 What sort of uses would you guys think that Nix has for like red teams or CTF players possibly? 376 00:32:29,620 --> 00:32:37,060 Like, does this model do you think change anything for how people like play cyber games, basically? 377 00:32:38,000 --> 00:32:44,820 So I said in the early in the beginning, right, Nix makes software that can coexist in lots of places. 378 00:32:45,420 --> 00:32:50,700 Well, that seems to be a primary need for a lot of people who are doing CTF type work. 379 00:32:51,020 --> 00:32:54,920 And maybe you do maybe you recompile everything not to be at slash Nix slash store. 380 00:32:54,920 --> 00:32:59,940 Maybe you put it to be slash, you know, my fun tools slash store or wherever you want to put it. 381 00:32:59,940 --> 00:33:00,880 Slash temp slash store. 382 00:33:00,880 --> 00:33:02,020 Slash temp slash store. 383 00:33:02,020 --> 00:33:02,920 Excellent, right? 384 00:33:02,920 --> 00:33:05,280 There's all sorts of good stuff you can do. 385 00:33:05,760 --> 00:33:07,420 Yeah, we got a question . 386 00:33:13,600 --> 00:33:15,960 The question is, do we have an alternative to Kali? 387 00:33:16,600 --> 00:33:18,980 There is someone that I forgot the name of it. 388 00:33:18,980 --> 00:33:22,280 Someone did start putting together essentially a call the Athena. 389 00:33:22,280 --> 00:33:23,360 Is it called Athena? 390 00:33:23,360 --> 00:33:24,420 Okay, Athena OS. 391 00:33:24,420 --> 00:33:31,280 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. 392 00:33:32,000 --> 00:33:33,620 I forgot how complete it was. 393 00:33:33,620 --> 00:33:35,540 But I think it's a Nix packages overlay. 394 00:33:35,540 --> 00:33:39,100 So again, it can coexist with an existing Nix OS installed just fine. 395 00:33:39,320 --> 00:33:42,140 Or I mean, you can also install it on Kali. 396 00:33:42,140 --> 00:33:43,060 Yeah. 397 00:33:44,060 --> 00:33:53,360 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. 398 00:33:53,360 --> 00:33:56,420 You don't want to necessarily have to live off the land. 399 00:33:56,420 --> 00:33:57,820 Sometimes you can if you need to. 400 00:33:57,820 --> 00:34:02,420 But sometimes you want to be able to like not interfere with what's out there. 401 00:34:03,200 --> 00:34:06,000 And so this provides you a way of doing that. 402 00:34:08,960 --> 00:34:09,800 Nothing out there. 403 00:34:09,800 --> 00:34:10,680 That was great. 404 00:34:13,790 --> 00:34:14,670 Cool. 405 00:34:15,910 --> 00:34:17,470 Yeah, let's open it up for questions. 406 00:34:17,470 --> 00:34:18,810 We already had one. 407 00:34:18,930 --> 00:34:23,310 Anyone burning to know anything about Nix, the ecosystem, the tool set, anything? 408 00:34:24,450 --> 00:34:25,090 Yep. 409 00:34:44,870 --> 00:34:46,150 Let's repeat the question. 410 00:34:46,150 --> 00:34:46,350 Yeah. 411 00:34:46,350 --> 00:34:49,970 So the question is, like, what what was the inflection point? 412 00:34:49,970 --> 00:34:51,750 There's a lot more recent interest right now. 413 00:34:51,750 --> 00:34:55,510 And where's the inflection point coming that like has caused that? 414 00:34:57,390 --> 00:35:03,170 Um, I give my take on it is software has become more and more complex. 415 00:35:03,370 --> 00:35:07,130 And there's been far more interest in supply chain security. 416 00:35:07,510 --> 00:35:15,390 And people are kind of realizing that the like Docker container approach kind of just kicked the can down the road a little bit. 417 00:35:15,430 --> 00:35:20,470 So I think that inflection point actually got delayed because of the like the rise of containers. 418 00:35:21,630 --> 00:35:24,370 But it was it was on its way either way. 419 00:35:24,390 --> 00:35:28,010 And so now we have this, like, rising interest. 420 00:35:28,690 --> 00:35:34,710 You know, we're starting to get back to the realm of software where we're gluing together lots of different systems. 421 00:35:34,930 --> 00:35:42,470 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. 422 00:35:42,590 --> 00:35:45,790 And I've got like, you know, rest stuff I need for my performance things. 423 00:35:45,790 --> 00:35:47,570 And how do I glue all this software together? 424 00:35:47,570 --> 00:35:49,170 How do we make it all work together? 425 00:35:49,330 --> 00:35:52,710 And then how do I do that in a way that is still trackable and manageable? 426 00:35:53,890 --> 00:35:58,190 How do I give people developer environments, for example, and make them work? 427 00:35:58,190 --> 00:36:03,050 I think these all these things are driving more and more Nix interest. 428 00:36:03,670 --> 00:36:17,730 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, 429 00:36:17,730 --> 00:36:21,590 all of a sudden people kind of pattern match like, yep, that's the thing I'm looking for. 430 00:36:21,590 --> 00:36:24,330 And I think that's led to a lot of that inflection point growth. 431 00:36:25,250 --> 00:36:29,750 Yeah, I think the being burned by Docker for especially project builds. 432 00:36:29,750 --> 00:36:34,250 Yeah, that's got a there's probably some chart if you can like graph sentiment there. 433 00:36:34,710 --> 00:36:44,630 And there's, I'm seeing still like many people interested in it coming from the personal projects, like local development thing. 434 00:36:44,630 --> 00:36:50,950 They never even make it past building the software that they're using. 435 00:36:50,950 --> 00:36:56,070 Let's say they're building project A, they never make it to the past for project A can build with Nix. 436 00:36:56,070 --> 00:36:58,670 They're just using Nix to pull in what they need. 437 00:36:58,810 --> 00:37:03,450 And then they build it the whatever the the normal way they normally do. 438 00:37:03,510 --> 00:37:07,690 So they're not even going end to end with Nix that is like exploded. 439 00:37:07,690 --> 00:37:14,590 And I think that continues to be the predominant way people are being like introduced and using Nix right now. 440 00:37:17,130 --> 00:37:22,170 Yeah, we, we see a lot of interest in adoption right now on the Nix OS side. 441 00:37:22,290 --> 00:37:25,130 So being able to like manage like your OS. 442 00:37:25,810 --> 00:37:33,090 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. 443 00:37:33,310 --> 00:37:38,650 People wanting to try out stuff, people want to try out things like Wayland and Sway and things like that. 444 00:37:38,650 --> 00:37:42,990 And we provide a kind of an easier, less damaging way to try stuff out. 445 00:37:43,470 --> 00:37:45,050 That's driven some interest. 446 00:37:45,330 --> 00:37:51,990 And then the yeah, the developer experience as well of like, oh, well, I now need to orchestrate 10 different open source projects. 447 00:37:52,030 --> 00:38:05,550 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. 448 00:38:05,770 --> 00:38:07,450 And you need a starting mass. 449 00:38:07,450 --> 00:38:15,130 And I think 20 pre 2015, they're just a like Nix fundamentally worked, but had a lot of gaps. 450 00:38:15,590 --> 00:38:28,430 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. 451 00:38:28,910 --> 00:38:39,210 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. 452 00:38:39,210 --> 00:38:44,710 So there is a, it's like the endless yak shave where you're getting things to work with Nix. 453 00:38:44,890 --> 00:38:50,830 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. 454 00:38:50,830 --> 00:38:54,430 They're like, I just want the largest package set and start installing things. 455 00:38:54,430 --> 00:38:55,730 And that's where we are today. 456 00:38:55,850 --> 00:39:00,530 So the community put in a lot of time to fix everything to set up patterns. 457 00:39:00,530 --> 00:39:03,370 So all that stuff's mostly taken care of. 458 00:39:03,370 --> 00:39:07,250 And if it's not, there's like well established paths on how to do that. 459 00:39:07,510 --> 00:39:15,870 You know, when I joined, there was like some really rough edges and also some, you know, like paper cuts that would get you. 460 00:39:15,890 --> 00:39:17,130 Surprising paper cuts. 461 00:39:17,130 --> 00:39:23,150 And it's just like a nonstop grind to get those down where now you have everything available. 462 00:39:23,150 --> 00:39:24,830 It works super smooth. 463 00:39:25,170 --> 00:39:27,790 And it's highly reliable and reproducible. 464 00:39:28,930 --> 00:39:32,090 And yeah, so shout out to the community because you know, we did that. 465 00:39:32,670 --> 00:39:34,750 Speaking of which, anything on the road map? 466 00:39:34,790 --> 00:39:36,110 We got one more over here. 467 00:39:36,110 --> 00:39:36,810 Let's do that. 468 00:39:38,010 --> 00:39:46,530 The question is, what is our workflow for contributing to Nix packages? 469 00:39:47,270 --> 00:39:49,430 I do, I do a lot of reviews these days. 470 00:39:49,430 --> 00:39:50,750 So Nix packages review. 471 00:39:50,810 --> 00:39:54,070 There's a tool that basically does the workflow for you. 472 00:39:54,070 --> 00:40:02,950 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. 473 00:40:03,730 --> 00:40:11,210 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. 474 00:40:11,210 --> 00:40:15,470 But just for simple like package version bumps, Nix packages review is awesome. 475 00:40:16,790 --> 00:40:18,450 I put stuff out there. 476 00:40:18,450 --> 00:40:20,690 If it gets merged, that's great. 477 00:40:20,690 --> 00:40:25,190 If it doesn't, I'll wait for DEF CON 34 and get Morgan to do it next year. 478 00:40:26,150 --> 00:40:28,230 Otherwise, you know, Merge before my lunch. 479 00:40:28,230 --> 00:40:29,210 Yeah, yeah. 480 00:40:29,210 --> 00:40:32,330 Or tomorrow at noon also get some stuff merged. 481 00:40:32,330 --> 00:40:33,550 But that's about it. 482 00:40:44,390 --> 00:40:48,370 So if I hear the question right, it was about what's the plans on security? 483 00:40:57,800 --> 00:41:00,880 Yeah, so the it's in reference to the XZ vulnerability. 484 00:41:00,960 --> 00:41:09,160 Actually, interestingly enough, we were not vulnerable to the XZ change due to some of these some of these things. 485 00:41:09,200 --> 00:41:17,120 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. 486 00:41:17,260 --> 00:41:20,240 But another thing is that it just makes it also more visible. 487 00:41:20,240 --> 00:41:25,380 So visibility into potential problems is essentially the first step into security. 488 00:41:26,180 --> 00:41:32,220 Next steps for like ecosystem wide security is stuff like, you know, the SBOM things we talked about. 489 00:41:32,780 --> 00:41:40,640 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. 490 00:41:41,080 --> 00:41:45,400 We have kind of new tools coming out to be able to track security vulnerabilities over time. 491 00:41:46,340 --> 00:41:50,200 The STF sovereign tech fund is helping fund some of that stuff. 492 00:41:50,760 --> 00:41:59,860 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. 493 00:41:59,980 --> 00:42:03,900 So there's a there's a lot of efforts that these core primitives allow us to do. 494 00:42:04,180 --> 00:42:14,620 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. 495 00:42:14,920 --> 00:42:19,240 So I'd say a lot of great potential to make good security improvements. 496 00:42:19,420 --> 00:42:20,840 And we always need more help. 497 00:42:20,840 --> 00:42:27,440 So if anyone's interested with any of these things, please contact us and we'll kind of point you in the right direction. 498 00:42:27,660 --> 00:42:32,760 But there's no way Nix solves the XZ supply chain trial. 499 00:42:32,760 --> 00:42:46,600 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. 500 00:42:46,740 --> 00:42:50,960 So I like the idea of like, it's oversight, it's visibility. 501 00:42:51,140 --> 00:42:59,720 You have a lot of active members looking at that source and highly cognizant of like, what's going on on their systems. 502 00:42:59,720 --> 00:43:03,720 And that level of like fidelity breeds that type of like introspection. 503 00:43:04,080 --> 00:43:11,260 But I don't want to sell like an overly secure posture here that like no way that could have happened to us. 504 00:43:15,040 --> 00:43:18,640 It is so easy to get things into like a lot of packages. 505 00:43:18,760 --> 00:43:32,940 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. 506 00:43:33,520 --> 00:43:38,060 Like a double digit amount of packages on Nix packages are single authored. 507 00:43:38,060 --> 00:43:48,060 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. 508 00:44:06,170 --> 00:44:16,270 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. 509 00:44:16,290 --> 00:44:19,690 So there's source binary, there's like a handful of different types. 510 00:44:19,690 --> 00:44:27,830 I don't know if like, there could be a new meta tag that this source has all its commits GPG verified, right? 511 00:44:27,830 --> 00:44:29,330 Does that also solve the exit again? 512 00:44:29,330 --> 00:44:41,050 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? 513 00:44:41,050 --> 00:44:50,210 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. 514 00:44:50,210 --> 00:44:51,750 Analog is great. 515 00:44:51,970 --> 00:44:56,370 And I love analog solutions, but it's a totally different problem set. 516 00:44:56,610 --> 00:45:07,190 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. 517 00:45:07,190 --> 00:45:09,870 So they only have access to what they need to have access to. 518 00:45:09,950 --> 00:45:17,210 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. 519 00:45:17,850 --> 00:45:19,590 So yeah. 520 00:45:19,590 --> 00:45:20,110 Yep. 521 00:45:20,110 --> 00:45:21,130 Another question? 522 00:45:22,770 --> 00:45:27,650 The question is why is everything system D? 523 00:45:28,410 --> 00:45:29,810 Because it works. 524 00:45:29,990 --> 00:45:30,870 Pragmatic. 525 00:45:31,170 --> 00:45:33,690 We I mean, we could do something else. 526 00:45:33,910 --> 00:45:36,190 But at the moment, that's what was used. 527 00:45:36,190 --> 00:45:44,130 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. 528 00:45:44,130 --> 00:45:53,210 I know that some people have also done using Nix to build non NixOS OS's that don't use system D. 529 00:45:53,210 --> 00:45:54,570 So that's also possible. 530 00:45:54,670 --> 00:45:58,790 But at the moment, the the NixOS distribution is system D based. 531 00:45:58,790 --> 00:45:59,450 Yes. 532 00:46:03,430 --> 00:46:05,130 Anything on the roadmap? 533 00:46:05,130 --> 00:46:13,470 Yeah, I actually wanted to mention something about so on the steering committee, we're kind of developing working on a like overall roadmap. 534 00:46:13,750 --> 00:46:24,230 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. 535 00:46:24,230 --> 00:46:34,250 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. 536 00:46:34,470 --> 00:46:37,990 So this can mean stuff like, hey, let's get it working on Windows. 537 00:46:37,990 --> 00:46:40,530 Let's make it easier to work inside of Docker. 538 00:46:40,530 --> 00:46:43,630 Let's make it easier to work as a standalone tool. 539 00:46:43,630 --> 00:46:58,830 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, 540 00:46:58,830 --> 00:47:00,710 which are actually quite robust. 541 00:47:00,910 --> 00:47:10,610 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. 542 00:47:10,610 --> 00:47:12,530 What if you're in medical hardware? 543 00:47:12,530 --> 00:47:15,090 What if you're going to be on a Raspberry Pi? 544 00:47:15,650 --> 00:47:16,670 These sorts of things. 545 00:47:16,670 --> 00:47:20,630 So basically how can we get Nix used in as many contexts as possible? 546 00:47:20,630 --> 00:47:23,030 Because that's kind of also our strong suit, right? 547 00:47:23,030 --> 00:47:31,390 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. 548 00:47:31,750 --> 00:47:40,650 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. 549 00:47:40,650 --> 00:47:47,970 Let us know as to like, you know, how will this kind of road map fit into either your interest or your plans? 550 00:47:48,210 --> 00:47:53,690 And yeah, contact us afterwards or email or just yell at me really loud. 551 00:47:57,260 --> 00:47:59,120 What's going on with flakes? 552 00:47:59,920 --> 00:48:06,400 So flake stabilization is essentially the biggest hurdle there is fetch tree. 553 00:48:07,100 --> 00:48:13,380 Once we get fetch tree kind of like set to go, the big hurdle there is actually get reproducibility. 554 00:48:13,720 --> 00:48:25,280 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. 555 00:48:26,180 --> 00:48:32,380 With fetch tree stabilize, there are not too many hurdles to getting flakes stabilized. 556 00:48:33,260 --> 00:48:35,160 There's like some like command line stuff. 557 00:48:35,160 --> 00:48:36,280 There's a few little things with air free. 558 00:48:36,280 --> 00:48:38,340 It's actually done a lot of work recently on that. 559 00:48:38,340 --> 00:48:39,520 Thank you very much. 560 00:48:40,340 --> 00:48:42,200 So it just it takes effort. 561 00:48:42,280 --> 00:48:45,060 Right now we don't have anyone full time really working on it. 562 00:48:45,080 --> 00:48:47,960 So another thing that we need is just contribution. 563 00:48:47,960 --> 00:48:52,060 So if you're interested in developing Nix, any C++ experts out there? 564 00:48:52,100 --> 00:48:52,900 Woo! 565 00:48:54,680 --> 00:48:56,100 Okay, maybe not. 566 00:48:56,340 --> 00:49:01,320 But if you care enough to do some C++ work, again, please let me know. 567 00:49:01,320 --> 00:49:04,160 And that's another place where we can use some help. 568 00:49:04,160 --> 00:49:07,020 Can I share some thoughts too really quickly? 569 00:49:07,020 --> 00:49:10,060 I was a very long holdout for this thing called flakes. 570 00:49:10,280 --> 00:49:11,580 Extremely long. 571 00:49:11,580 --> 00:49:14,200 I feel like I just gave up and I was like, I'm going to use it. 572 00:49:14,200 --> 00:49:19,200 And I think there's validity in that because software is a community. 573 00:49:19,380 --> 00:49:20,620 And it's written by authors. 574 00:49:21,000 --> 00:49:27,760 And the authors of this software suite have decided they like this thing, and they want to keep pushing it forward. 575 00:49:28,160 --> 00:49:34,760 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. 576 00:49:34,760 --> 00:49:38,360 And I was like, you know, I gotta, I've liked everything they've produced thus far. 577 00:49:38,360 --> 00:49:40,540 So I'm going to trust in the final vision. 578 00:49:40,600 --> 00:49:44,760 I still have a little hesitation, like I don't really know what it bought me. 579 00:49:44,900 --> 00:49:47,340 But that's where the ongoing investments going. 580 00:49:47,340 --> 00:49:52,600 And I want and kind of mentioned that's where I'm spending my time to make it better and contribute to it. 581 00:49:52,600 --> 00:49:58,540 So that's like my also addendum to flakes. 582 00:49:58,920 --> 00:50:16,340 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. 583 00:50:16,340 --> 00:50:25,580 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. 584 00:50:25,580 --> 00:50:27,300 So I think that has also helped the inflection point. 585 00:50:27,300 --> 00:50:29,100 Flakes or the fancy CLI? 586 00:50:29,100 --> 00:50:31,000 It might have been the fancy CLI. 587 00:50:31,840 --> 00:50:32,260 Sure. 588 00:50:32,260 --> 00:50:32,960 Okay. 589 00:50:32,960 --> 00:50:36,360 All right, we have two minutes. 590 00:50:36,360 --> 00:50:37,680 One last question. 591 00:50:37,920 --> 00:50:38,380 Yes . 592 00:51:11,180 --> 00:51:21,060 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. 593 00:51:21,060 --> 00:51:24,360 That's, you know, there's the potential there of divergence from upstream. 594 00:51:24,360 --> 00:51:25,980 And then how do we deal with that? 595 00:51:26,860 --> 00:51:33,640 In some sense, the way I see that is, hey, they're, they're testing the waters. 596 00:51:33,660 --> 00:51:44,080 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. 597 00:51:45,080 --> 00:51:46,840 And that actually helps. 598 00:51:46,840 --> 00:51:52,260 So a lot of the changes that dead CISNICs is doing is also being kind of PR back into upstream. 599 00:51:52,400 --> 00:51:55,960 Some are not, it depends on like what that actual change is. 600 00:51:56,520 --> 00:51:58,920 But I think overall, it just helps push us along. 601 00:51:58,920 --> 00:52:04,800 It's a forcing function, just like any other fork that would kind of, you know, force us to get our act together. 602 00:52:04,800 --> 00:52:07,580 So I'm actually in some sense in favor of that. 603 00:52:07,620 --> 00:52:09,200 But you'd have to be careful a little bit. 604 00:52:09,200 --> 00:52:11,840 And, you know, it's a that's open source. 605 00:52:12,120 --> 00:52:14,460 Okay, I think the community it solves itself. 606 00:52:14,620 --> 00:52:15,780 They're moving it forward. 607 00:52:15,780 --> 00:52:19,540 If it's a positive addition, and it's pulling everyone there. 608 00:52:20,540 --> 00:52:21,700 That makes sense. 609 00:52:21,700 --> 00:52:22,780 And we're all going to use it. 610 00:52:22,780 --> 00:52:28,180 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. 611 00:52:28,380 --> 00:52:42,580 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. 612 00:52:42,920 --> 00:52:56,230 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. 613 00:52:58,960 --> 00:53:00,540 Thank you guys.