1 00:00:04,090 --> 00:00:05,870 Hey, guys. 2 00:00:07,950 --> 00:00:13,030 I have a little bit of a live demo, so there's a lot of things that are probably about to go wrong. 3 00:00:13,030 --> 00:00:16,050 I got this maybe working, like, five minutes ago. 4 00:00:16,670 --> 00:00:18,190 My name is Britton Robich. 5 00:00:18,250 --> 00:00:22,710 I've been in Nix, doing Nix stuff, for about two or three years now. 6 00:00:22,730 --> 00:00:24,710 Some with work, some for personal. 7 00:00:24,890 --> 00:00:26,490 Some mix both. 8 00:00:26,490 --> 00:00:34,990 But one of the issues I've always had is deploying multiple machines, and especially among multiple users. 9 00:00:35,310 --> 00:00:40,230 And at PlantNix, I found a... it's called a framework. 10 00:00:40,230 --> 00:00:45,930 I like to think of it as, like, NixOS for teams on Rails, almost. 11 00:00:45,930 --> 00:00:47,890 It's called clan.lol. 12 00:00:48,150 --> 00:00:58,130 And it's basically a framework that combines a few community packages, like Disco, NixOS Anywhere, and SoxNix. 13 00:00:58,130 --> 00:01:02,110 It makes it easy to deploy lots of services, however you want. 14 00:01:02,110 --> 00:01:05,110 Very modular on many machines. 15 00:01:05,630 --> 00:01:07,210 So with me, 16 00:01:10,500 --> 00:01:23,580 if you can see this, this is a little Mac, like, micro rack with three little mini... three mini PCs. 17 00:01:28,970 --> 00:01:31,950 They're all networked together. 18 00:01:32,310 --> 00:01:34,230 I have my laptop on it. 19 00:01:34,230 --> 00:01:49,030 So basically what I'm going to show is PixieBooting three different mini PCs with a custom image, and then updating those three machines with whatever service we decide we want. 20 00:01:49,090 --> 00:02:04,730 For this example, we're going to use, like, the typical monitoring stack with Prometheus, Grafana, and those are going to automatically just pop up because I have the service added to all three machines. 21 00:02:05,510 --> 00:02:10,030 And then I'll show you some more of the, like, clan-specific stuff as well. 22 00:02:10,370 --> 00:02:13,710 So let's get started and move 23 00:02:16,800 --> 00:02:19,380 into all these. 24 00:02:36,050 --> 00:02:43,930 So this is just loading up the netboot image that I've made and hosted on my laptop right now. 25 00:02:57,350 --> 00:03:02,840 So I'm not going to keep switching back between the three mini PCs. 26 00:03:02,840 --> 00:03:05,480 We're just going to focus on this one for now. 27 00:03:05,920 --> 00:03:09,340 But we're just putting it into a normal NixOS installer. 28 00:03:09,360 --> 00:03:21,800 The only main difference is it's using the netboot boot module and then something called NixOS Factor, which is a community project. 29 00:03:21,800 --> 00:03:26,080 Same guys that make SocksNix and Plan. 30 00:03:26,080 --> 00:03:27,900 I think it was made for Plan. 31 00:03:28,140 --> 00:03:33,100 It's basically an alternative to HardwareConfiguration.nix. 32 00:03:33,860 --> 00:03:45,440 And it's where you can define all the hardware in a machine before you deploy it, which is useful for this scenario because in 33 00:03:58,980 --> 00:04:04,860 a deployment like this, you preferably would know all the disks beforehand. 34 00:04:05,180 --> 00:04:13,400 And so we can generate templates using the disk information that we can get from those machines before we actually install NixOS. 35 00:04:13,400 --> 00:04:14,420 How do we do that? 36 00:04:14,420 --> 00:04:16,640 Typically, you just KXAC into it. 37 00:04:17,280 --> 00:04:33,840 Or the Plan installer will KXAC into their custom NixOS image, which has NixOS Factor, pulls that factor.json down, and copy it over SSH. 38 00:04:33,840 --> 00:04:42,240 The main thing for Plan that you would need to know is this disk ID here. 39 00:04:43,100 --> 00:04:55,960 What that's doing is whenever we are first installing Plan on a machine, you want to create the disk using Disco. 40 00:04:55,980 --> 00:04:58,580 And they have nice little templates. 41 00:05:01,870 --> 00:05:10,020 And you can see here, there's just some variables that get replaced by the actual disk ID from NixOS Factor. 42 00:05:17,270 --> 00:05:22,630 All right, so we're in our netboot image. 43 00:05:22,630 --> 00:05:25,190 Let's actually get NixOS installed on these. 44 00:05:27,820 --> 00:05:30,280 I'm going to run a command. 45 00:05:33,600 --> 00:05:36,660 It's just a built-in Plan CLI. 46 00:05:46,550 --> 00:05:54,910 Installing the three machines with our specific Plan configuration. 47 00:05:54,910 --> 00:05:56,810 We'll get into that briefly. 48 00:05:57,290 --> 00:06:02,250 Let me just get this started to hopefully not having issues. 49 00:06:02,250 --> 00:06:03,610 Cool, cool, cool. 50 00:06:08,060 --> 00:06:09,760 Yeah, live demos. 51 00:06:48,100 --> 00:06:49,820 All right, let's see if this will work. 52 00:06:50,180 --> 00:06:51,540 If not, we're skipping it. 53 00:06:51,540 --> 00:06:52,860 We're just going to explain Plan. 54 00:07:04,620 --> 00:07:06,600 All right, we're going to come back to it. 55 00:07:09,950 --> 00:07:11,830 So, Plan. 56 00:07:11,850 --> 00:07:12,710 There's a few different 57 00:07:19,640 --> 00:07:26,880 components that 58 00:07:33,050 --> 00:07:36,970 make up Plan. 59 00:07:36,970 --> 00:07:38,470 It's kind of their secret sauce. 60 00:07:38,950 --> 00:07:42,850 You have the bars, which is variables, which is very nice. 61 00:07:42,850 --> 00:07:48,710 It's where you can share secrets, values, between any of your Plan machines. 62 00:07:48,710 --> 00:07:53,810 You can actually add a lot of ACL rules to that. 63 00:07:53,810 --> 00:08:03,310 So, by machine secrets, by user secrets, or you can even share them between whatever combination that you want. 64 00:08:04,310 --> 00:08:26,350 So, for example, these three mini-machines, mini-PCs, have these variables that will be injected into the NixOS configuration whenever we update or install. 65 00:08:26,350 --> 00:08:34,470 You can see here, we have SSHKey, and then TailScaleHothKey. 66 00:08:36,330 --> 00:08:46,990 These are both secret variables, and both of these are shared between just my user, so the BritnR user. 67 00:08:47,110 --> 00:08:50,630 On this, we also have a few other users. 68 00:08:50,630 --> 00:08:55,390 We have Alex and Dima. 69 00:08:56,430 --> 00:09:07,710 And looking again, you can see my BritnR user on the machine is the owner here. 70 00:09:12,220 --> 00:09:14,180 Sorry, let me step back. 71 00:09:21,240 --> 00:09:24,640 Plan has users, and you also have your system users. 72 00:09:24,640 --> 00:09:35,660 I'm going to refer to these as plan users and roster going forward to try to help with confusion because words are very similar here. 73 00:09:36,780 --> 00:09:42,920 So, what we're looking at here is our three plan users. 74 00:09:43,220 --> 00:09:46,680 So, think of this as your admin panel. 75 00:09:46,680 --> 00:09:55,460 We have the AGE public keys showing here, and you can add as many as you want per user, per machine. 76 00:09:55,980 --> 00:09:59,660 And they really don't work differently between users and machines. 77 00:10:00,400 --> 00:10:04,520 You can see Alex, he's in the group admin that we've created. 78 00:10:05,160 --> 00:10:08,780 He has an Alex framework AGE key. 79 00:10:08,780 --> 00:10:12,600 He has AGE keys for these three mini PCs and a couple personal computers. 80 00:10:13,480 --> 00:10:19,540 You can see that this one is directly assigned through the Alex user. 81 00:10:19,820 --> 00:10:23,460 And then we have three that are assigned through the admin group. 82 00:10:23,460 --> 00:10:24,580 It's all inherited. 83 00:10:25,960 --> 00:10:27,360 Same thing for me. 84 00:10:27,940 --> 00:10:32,060 And then for Dima, he just has his one personal computer. 85 00:10:32,060 --> 00:10:36,420 We just added him to the plan, so he doesn't have admin access just yet. 86 00:10:37,500 --> 00:10:41,260 You can see our machines, and these are their public AGE keys. 87 00:10:41,980 --> 00:10:45,220 And you can also see the groups that they're in. 88 00:10:45,220 --> 00:10:49,440 I'm sharing certificates between these machines. 89 00:10:51,860 --> 00:10:55,840 I share the actual SOP secrets between them. 90 00:10:57,240 --> 00:11:04,080 You can see our admins, and you can see that both me and Alex are admins. 91 00:11:04,080 --> 00:11:13,360 And we have the mini PCs keys assigned through the group and not the user. 92 00:11:17,010 --> 00:11:21,770 Let's check back to see if anything is being done here. 93 00:11:21,830 --> 00:11:24,990 We have a couple working. 94 00:11:25,950 --> 00:11:29,670 Let's see if we can get our third one working as well. 95 00:11:33,400 --> 00:11:37,820 This is all building from a binary cache in Harmonia. 96 00:11:37,820 --> 00:11:41,640 I think it's the same thing that they're using here at NixVegas. 97 00:11:42,820 --> 00:11:47,320 Just to try to make this go a little bit smoother without great internet. 98 00:12:03,130 --> 00:12:08,970 The client secrets, which are defining the actual admin users and the actual machines. 99 00:12:09,990 --> 00:12:11,270 You have bars. 100 00:12:11,270 --> 00:12:12,630 There's a lot of them. 101 00:12:12,630 --> 00:12:15,390 These are all your variables that you want to inject in your machines. 102 00:12:16,450 --> 00:12:22,050 Let's go to Britain Framework, which is this laptop I'm on now. 103 00:12:22,430 --> 00:12:23,310 I have a lot. 104 00:12:24,410 --> 00:12:30,370 Kind of hard to parse, so let's filter that out a little bit. 105 00:12:33,110 --> 00:12:35,850 You can see here, secrets. 106 00:12:36,050 --> 00:12:37,310 They're all SOPs encrypted. 107 00:12:37,310 --> 00:12:38,330 You know how that works. 108 00:12:39,170 --> 00:12:43,010 The cool thing is, you can share these secrets, like I said. 109 00:12:43,190 --> 00:12:51,090 But if you need to add a new machine or add a new user to this, what Clang does is automatically re-encrypt it, if you have access to it. 110 00:12:51,090 --> 00:12:52,830 And that's all based on the auge key. 111 00:12:53,010 --> 00:12:55,590 It re-encrypts it as your auge key. 112 00:12:56,490 --> 00:12:59,790 Nothing really different than what SOPs and SOPs does. 113 00:12:59,790 --> 00:13:02,790 It just makes it a lot easier to actually manage. 114 00:13:04,790 --> 00:13:08,350 And then you have nice things like values. 115 00:13:08,350 --> 00:13:12,210 So if we go to here 116 00:13:21,350 --> 00:13:26,890 , which is where Clang is putting in that variable for my Harmonia public signing key. 117 00:13:27,030 --> 00:13:28,450 This is world-readable. 118 00:13:28,450 --> 00:13:29,630 It's not encrypted. 119 00:13:29,630 --> 00:13:30,610 It's not secret. 120 00:13:30,690 --> 00:13:32,290 Anyone can see it. 121 00:13:32,290 --> 00:13:32,930 It's great. 122 00:13:32,930 --> 00:13:34,730 Because you want to pull in these values. 123 00:13:35,530 --> 00:13:41,730 Another thing with VARs is, all these are not... 124 00:13:42,490 --> 00:13:43,870 You don't have to input them. 125 00:13:43,870 --> 00:13:46,110 You don't have to generate them beforehand. 126 00:13:46,230 --> 00:13:49,270 Clang handles that for you with something called generators. 127 00:13:50,310 --> 00:13:55,510 So, for example, this Harmonia key is 128 00:14:00,050 --> 00:14:17,140 generated here whenever I first either say, Alright, Clang, let's generate all the variables for this machine. 129 00:14:17,140 --> 00:14:19,500 Or all the variables for this machine. 130 00:14:20,060 --> 00:14:23,340 Or, when you install it for the first time, you update it. 131 00:14:23,560 --> 00:14:34,400 Clang will go in, run all this script, generate the values, the keys, the secrets that you want, and put them in that variable folder. 132 00:14:34,920 --> 00:14:37,840 Encrypted with the proper auge keys. 133 00:14:38,100 --> 00:14:38,720 Cool. 134 00:14:41,750 --> 00:14:46,230 Looks like this is going to be back up. 135 00:14:52,950 --> 00:14:54,130 Maybe not. 136 00:15:07,000 --> 00:15:14,480 Ah, it did not boot back into my OS. 137 00:15:14,480 --> 00:15:16,840 Let's catch this one, and we'll roll with it. 138 00:15:22,090 --> 00:15:25,290 Yeah, it was trying to pixie boot back into the installer. 139 00:15:29,610 --> 00:15:30,910 And it still is. 140 00:15:48,740 --> 00:15:50,740 Alright, maybe that will fix that. 141 00:15:50,740 --> 00:15:52,980 And I can show you what this is doing. 142 00:15:55,920 --> 00:15:56,640 Alright. 143 00:15:57,340 --> 00:15:58,640 So you have a lot of secrets. 144 00:15:58,660 --> 00:15:59,580 You have a lot of machines. 145 00:15:59,580 --> 00:16:00,680 You have a lot of users. 146 00:16:00,860 --> 00:16:02,660 You have a lot of users in your roster. 147 00:16:03,520 --> 00:16:06,600 How does Clang make that a little bit easier to manage? 148 00:16:06,700 --> 00:16:07,960 You have a concept of tags. 149 00:16:07,960 --> 00:16:09,200 It's exactly what you think. 150 00:16:09,420 --> 00:16:12,200 So, let's run the tags command. 151 00:16:13,940 --> 00:16:16,960 Ah, let me get to a different window. 152 00:16:19,640 --> 00:16:23,540 And here you can see all the machines and the tags that we have assigned to them. 153 00:16:24,180 --> 00:16:27,080 So, our little mini PCs. 154 00:16:27,560 --> 00:16:29,780 They have my Telnet service. 155 00:16:30,340 --> 00:16:32,340 They have Prometheus added. 156 00:16:32,480 --> 00:16:34,360 And then they have some logs. 157 00:16:34,360 --> 00:16:36,680 And then this other tag called NV. 158 00:16:37,360 --> 00:16:47,720 And so typically whenever you want to go and update a Clang machine, you have to go in, clang-m-update, say, gmk1. 159 00:16:47,720 --> 00:16:50,700 I don't think this is up yet, so I don't think it's going to work, but we'll see. 160 00:16:53,260 --> 00:16:55,800 But, it's just a NixOS rebuild. 161 00:16:57,080 --> 00:17:02,360 And it copies over the config over ssh after a spell. 162 00:17:03,160 --> 00:17:04,360 Nothing fancy. 163 00:17:05,100 --> 00:17:14,740 What's cool is you can actually define tags that you want to update. 164 00:17:14,740 --> 00:17:21,180 So, what this will do is go in and update every single machine with this NV tag. 165 00:17:22,500 --> 00:17:26,480 Again, I don't know if this is going to work, but we'll see. 166 00:17:27,120 --> 00:17:29,620 Okay, yeah, we're building. 167 00:17:30,740 --> 00:17:31,900 Potentially. 168 00:17:39,720 --> 00:17:42,300 While we wait, let's go back to tags. 169 00:17:45,900 --> 00:17:48,380 So we just have a few tags on those mini PCs. 170 00:17:48,380 --> 00:17:50,320 What about my actual laptop? 171 00:17:50,320 --> 00:17:51,680 The Sprint and Framework. 172 00:17:51,960 --> 00:17:53,160 We have a ton. 173 00:17:53,180 --> 00:17:57,320 So let's go and look at what that actually has inside. 174 00:18:02,070 --> 00:18:05,230 So let's go to... 175 00:18:05,230 --> 00:18:06,910 How about laptop? 176 00:18:14,770 --> 00:18:20,530 So here we have a bunch of Home Manager profiles that we've made. 177 00:18:20,770 --> 00:18:26,990 This just passed through and basically makes Home Manager modules a planned service. 178 00:18:26,990 --> 00:18:27,970 So you can just add them. 179 00:18:27,970 --> 00:18:29,870 You don't have to do anything crazy. 180 00:18:29,870 --> 00:18:31,310 You can just copy and paste them over. 181 00:18:31,390 --> 00:18:31,990 Cool. 182 00:18:31,990 --> 00:18:38,670 So, we have all the MyTerminal, HyperLan, whatever. 183 00:18:38,670 --> 00:18:40,070 It's all defined here. 184 00:18:40,070 --> 00:18:43,910 If we go into my actual machine's config, 185 00:18:47,020 --> 00:18:49,060 you can see it's pretty minimal. 186 00:18:49,060 --> 00:18:52,280 I'm not actually defining any of those values in here. 187 00:18:52,280 --> 00:18:56,720 It's all being added to it, after the fact, through the clan tag. 188 00:18:59,990 --> 00:19:07,350 And to show you one of the mini PCs, we have absolutely nothing. 189 00:19:07,350 --> 00:19:26,890 The only thing in here is we have a Disco-generated template using the NixOS factor that pulled this device ID right here and just the template information that we want to use XTF for. 190 00:19:44,570 --> 00:19:49,030 So we have tags for machines, and we also have tags for users. 191 00:19:49,030 --> 00:19:53,570 And you can see some of that if we go back to roster. 192 00:19:54,450 --> 00:20:00,670 So, for example, let's go to britainr on britain-fw. 193 00:20:00,670 --> 00:20:03,830 You can see I'm running phish. 194 00:20:04,430 --> 00:20:09,050 I have my base tag, my dev tag, and my laptop tag. 195 00:20:09,050 --> 00:20:13,410 And that's where it's pulling in the values for Alacrity, HyperLan, etc. 196 00:20:13,570 --> 00:20:15,350 That's where all that's defined. 197 00:20:17,110 --> 00:20:20,850 So we go and look at the file that we actually put that in. 198 00:20:23,450 --> 00:20:25,210 We're just adding tags here. 199 00:20:27,090 --> 00:20:33,970 And so, there's a little more here because this is the machine tags and the actual... 200 00:20:35,150 --> 00:20:39,470 well, it's all the machine tags and a lot of services that don't exist right now. 201 00:20:41,790 --> 00:20:44,550 And this is done through the clan inventory. 202 00:20:44,550 --> 00:20:52,770 So, it's basically just like where you go and grab what services you want for whatever machine you want. 203 00:20:52,770 --> 00:20:55,850 And you can be pretty particular with this. 204 00:21:01,030 --> 00:21:08,080 Let's go to Harmonia. 205 00:21:09,820 --> 00:21:15,720 You can see here, this is what clan calls instances. 206 00:21:16,660 --> 00:21:19,520 And you can have multiple instances of the same service. 207 00:21:19,520 --> 00:21:23,560 So , you can define Harmonia as many times as you want. 208 00:21:23,780 --> 00:21:25,460 And they're completely separated. 209 00:21:25,940 --> 00:21:28,580 You add tags to this here. 210 00:21:29,400 --> 00:21:35,060 And going forward, it will pick up the role you defined in the clan service. 211 00:21:35,060 --> 00:21:36,860 So, if we were to look at that. 212 00:21:42,800 --> 00:21:45,020 You can see we have a server role. 213 00:21:48,080 --> 00:21:49,620 We have a client role. 214 00:21:51,000 --> 00:21:55,960 This is where we're actually defining the actual configuration. 215 00:21:55,960 --> 00:21:59,980 We have the base defaults in that Harmonia slash default. 216 00:22:00,440 --> 00:22:05,000 And then we're actually specifying what we want in that for your specific config. 217 00:22:05,120 --> 00:22:08,780 And you can share these clan service modules with other people. 218 00:22:08,780 --> 00:22:12,600 You can pull them in from Git or other Flakes, etc. 219 00:22:13,880 --> 00:22:19,120 So, in this example, I'm just running Harmonia on my localhost. 220 00:22:19,120 --> 00:22:21,660 So, we go over. 221 00:22:27,580 --> 00:22:28,880 We have our cache. 222 00:22:31,280 --> 00:22:34,460 But what's cool about this, we also have clients. 223 00:22:34,720 --> 00:22:38,840 And you can see that it uses the client role. 224 00:22:39,620 --> 00:22:42,600 And we're specifying my... 225 00:22:42,600 --> 00:22:44,020 Ah, this is outdated. 226 00:22:44,840 --> 00:22:46,300 I only have it on this computer. 227 00:22:46,980 --> 00:22:50,360 You can add this role to multiple hosts. 228 00:22:50,360 --> 00:22:55,480 You can modify all those mini-PCs just by going and adding this tag here. 229 00:22:55,480 --> 00:22:57,120 So, this onyx cache. 230 00:22:59,960 --> 00:23:02,820 And that literally just looks like this. 231 00:23:12,550 --> 00:23:18,550 So, after I save this, I run a clan mupdate to update these mini-PCs. 232 00:23:18,830 --> 00:23:24,110 And all of them will have my cache automatically added. 233 00:23:24,110 --> 00:23:27,070 I don't have to go in and add it to every machine. 234 00:23:27,070 --> 00:23:28,330 I just add the tag. 235 00:23:36,200 --> 00:23:42,160 And I'm going to check this one more time to see if anything is working with those mini-PCs. 236 00:23:42,160 --> 00:23:43,120 I think so. 237 00:23:43,860 --> 00:23:48,700 So, one of the things I have set up is, like I said, the monitoring stack. 238 00:23:48,700 --> 00:23:50,500 Prometheus, Loki, Grafana. 239 00:23:51,300 --> 00:23:52,780 All that's being pulled in. 240 00:23:52,780 --> 00:23:56,100 I also have a PromTel service running. 241 00:23:56,100 --> 00:24:00,480 So, everything on my telnet automatically gets pulled into Prometheus. 242 00:24:01,820 --> 00:24:04,660 And let's see if... 243 00:24:05,940 --> 00:24:08,760 So, we have my framework. 244 00:24:10,100 --> 00:24:13,760 We have my desktop at home. 245 00:24:13,920 --> 00:24:17,680 And I think we have one of the mini-PCs was up. 246 00:24:17,760 --> 00:24:19,500 So, there you go. 247 00:24:19,940 --> 00:24:21,380 We'll look at my desktop at home. 248 00:24:21,380 --> 00:24:22,340 Works the same way. 249 00:24:22,340 --> 00:24:27,220 It's also defined in the clan inventory system as a machine. 250 00:24:30,240 --> 00:24:38,720 But this just lets you pick and choose what services and how you want them for every machine you want. 251 00:24:38,960 --> 00:24:45,520 And it's basically a top-down approach of Nix and NixOS for an organization. 252 00:24:45,520 --> 00:24:50,720 Instead of putting up each machine, caring about every single thing that's on it. 253 00:24:50,720 --> 00:24:54,260 Like , alright, I'm going to build a custom installer or whatever. 254 00:24:54,260 --> 00:24:59,080 This just allows you to just kind of treat your computers like cattle. 255 00:24:59,080 --> 00:25:01,340 Like in the DevOps model. 256 00:25:02,040 --> 00:25:11,220 Like, I have reflashed these three mini-PCs probably about 25 times, 30 times in the past two days trying to get everything working correctly. 257 00:25:22,380 --> 00:25:24,520 Yeah, it is similar to Ansible. 258 00:25:24,520 --> 00:25:29,800 It also replaces things like Colima, Deploy RS. 259 00:25:29,800 --> 00:25:32,140 It just brings everything in one framework. 260 00:25:34,660 --> 00:25:37,500 But we've been running this, me, Alex, Dima. 261 00:25:37,500 --> 00:25:42,400 We've been running this for about two months, three months probably. 262 00:25:43,900 --> 00:25:46,400 And it is so much better. 263 00:25:46,600 --> 00:25:49,380 I was trying to make this kind of myself beforehand. 264 00:25:49,480 --> 00:25:52,880 And a pretty shitty version of it is what happened. 265 00:25:52,880 --> 00:25:53,900 Found Clang. 266 00:25:54,140 --> 00:25:55,240 Moved over to it. 267 00:25:55,240 --> 00:25:59,400 Mainly because of ours, which is trying to be out-trained into NixOS. 268 00:26:08,490 --> 00:26:09,870 One last thing. 269 00:26:10,270 --> 00:26:12,170 We also have roles and roster. 270 00:26:13,090 --> 00:26:19,610 So these are roles you want to define at the system level. 271 00:26:19,610 --> 00:26:21,730 This is not Clang-specific. 272 00:26:22,530 --> 00:26:27,530 So, for example, let's go to Dima. 273 00:26:27,530 --> 00:26:33,590 I added him as just a basic user on all three of these mini PCs. 274 00:26:33,730 --> 00:26:36,530 And then he's a full owner of his Zenith machine. 275 00:26:36,590 --> 00:26:38,490 Which basically means he has full access. 276 00:26:38,490 --> 00:26:40,230 He can go and update it. 277 00:26:40,670 --> 00:26:45,290 And these are actually changing the user profile on each machine. 278 00:26:45,290 --> 00:26:48,190 So, for Dima, 279 00:26:53,300 --> 00:26:55,800 you see his Zenith machine. 280 00:26:55,880 --> 00:26:56,860 He's the owner. 281 00:26:57,140 --> 00:27:00,920 And, again, these are where he's defining, like, this is my laptop. 282 00:27:00,920 --> 00:27:03,100 I want my Zalige config. 283 00:27:03,100 --> 00:27:07,020 I want my NeoGem config on this. 284 00:27:07,380 --> 00:27:09,760 And just add or remove tags as needed. 285 00:27:11,140 --> 00:27:15,460 And then on, like, these mini PCs, I literally just gave him a user account. 286 00:27:15,460 --> 00:27:16,420 He can log in. 287 00:27:16,540 --> 00:27:20,660 It's just pulling in his public key here. 288 00:27:21,220 --> 00:27:21,960 And that's all. 289 00:27:21,960 --> 00:27:25,160 So, like, you can just add as many users. 290 00:27:25,160 --> 00:27:26,940 You can add as many machines as you want. 291 00:27:26,940 --> 00:27:28,680 And it's very simple. 292 00:27:28,680 --> 00:27:33,740 Makes everything, like, all together in this Clang inventory system. 293 00:27:37,120 --> 00:27:41,460 One thing about Clang, I will... there's a few caveats. 294 00:27:41,620 --> 00:27:43,000 It's not stable yet. 295 00:27:43,580 --> 00:27:45,980 There's many, many breaking changes. 296 00:27:45,980 --> 00:27:49,320 Trying to stabilize it for next time, next month. 297 00:27:49,720 --> 00:27:52,820 I suggest probably waiting until then to check it out. 298 00:27:52,820 --> 00:28:02,240 But in the meantime, if you want to see, like, a working-ish version of it, and this is the actual repo we use. 299 00:28:10,380 --> 00:28:11,880 I'll leave it up here for a second. 300 00:28:14,960 --> 00:28:17,840 Onyx computer slash onyx-core. 301 00:28:17,980 --> 00:28:19,440 See if it will actually load. 302 00:28:21,060 --> 00:28:23,800 You can look through this repo, kind of see how things are laid out. 303 00:28:23,800 --> 00:28:28,960 And maybe see if you want to give Clang a chance. 304 00:28:29,680 --> 00:28:31,160 Thanks, everyone. 305 00:28:36,470 --> 00:28:37,670 Questions? 306 00:28:38,250 --> 00:28:39,450 Freed? 307 00:28:51,830 --> 00:29:06,610 I feel like if it's a personal use case, you don't have multiple users, and it's just you trying to manage multiple machines, probably at that 3 or 4 level is when I would consider switching over. 308 00:29:06,610 --> 00:29:15,330 If you have multiple people using a single machine or multiple machines, honestly, two machines. 309 00:29:15,330 --> 00:29:17,290 It makes things dead simple. 310 00:29:26,720 --> 00:29:28,080 I have considered it. 311 00:29:28,080 --> 00:29:29,700 It is part of Disco. 312 00:29:29,700 --> 00:29:31,100 It is a template. 313 00:29:31,180 --> 00:29:35,440 I've been too scared to test it before doing this talk. 314 00:29:38,930 --> 00:29:40,330 Say that again? 315 00:29:42,150 --> 00:29:44,330 It's all managed through Git. 316 00:29:54,860 --> 00:29:59,340 There is some state management, but for the most part, I would say no. 317 00:29:59,340 --> 00:30:01,140 That's more on you. 318 00:30:01,980 --> 00:30:08,680 Similar to a Terraform model where you have your local state, or you can use S3, whatever. 319 00:30:08,720 --> 00:30:14,820 You just have to be careful about where you're updating your machines from. 320 00:30:15,360 --> 00:30:17,040 I haven't had much of an issue. 321 00:30:17,620 --> 00:30:21,420 Right now, we've just been using it like a local Git. 322 00:30:22,420 --> 00:30:29,820 With CICD, you would probably just want to completely rebuild through a GitHub action or whatever. 323 00:30:30,780 --> 00:30:39,380 It would just be a new user in the clan, or a new clan user with permissions to whatever machines you want to redeploy. 324 00:30:45,090 --> 00:30:46,410 Anything else? 325 00:30:47,470 --> 00:30:48,470 Cool. 326 00:30:48,470 --> 00:30:49,490 Thanks, everyone.