!VhbWwlUdjHkamKnfrK:nixos.org

Nix: Cloud Native

274 Members
66 Servers

Load older messages


SenderMessageTime
20 Oct 2025
@felix.schroeter:scs.ems.hostFelix Schrรถter (๐ŸŒ„ 27.10. โ€“ 09.11.) changed their display name from Felix Schrรถter to Felix Schrรถter (๐ŸŒ„ 27.10. โ€“ 09.11.).08:33:43
@felix.schroeter:scs.ems.hostFelix Schrรถter (๐ŸŒ„ 27.10. โ€“ 09.11.) left the room.09:55:11
22 Oct 2025
@raphi-debug:matrix.orgraphi-debug joined the room.10:05:41
23 Oct 2025
@andrewzah:matrix.abare.partyAndrew Zah joined the room.08:07:34
@lillecarl:matrix.orglillecarl joined the room.09:40:17
@lillecarl:matrix.orglillecarl Hey guys!
I don't know if you've seen nix-csi yet. It's a CSI implementation that's intended to mount /nix into Kubernetes containers. It's still under active development but the paths I'm using work as-is already. (Supplying an expression in volumeAttributes and having nix-csi build it). I have written the code for specifying prebuilt storePaths as well but haven't started testing it yet ๐Ÿ˜„
12:18:16
@lillecarl:matrix.orglillecarl * Hey guys, I don't know if you've seen nix-csi yet. It's a CSI implementation that's intended to mount /nix into Kubernetes containers. It's still under active development but the paths I'm using work as-is already. (Supplying an expression in volumeAttributes and having nix-csi build it). I have written the code for specifying prebuilt storePaths as well but haven't started testing it yet ๐Ÿ˜„ 12:18:23
@lillecarl:matrix.orglillecarl I'm also working on easykubenix, it's like kubenix, but easier (:P). It's also got features to convert imported resource lists into attribute sets (and back) so you can override items in lists as attrsets in the module system which is quite handy if you're using a chart or manifest blob that has something you wanna change ๐Ÿ˜„ It generates JSON, YAML and a deployment script that uses "kluctl" to deploy with pruning to your active context if you don't wanna go through GitOps during development 12:21:55
@lillecarl:matrix.orglillecarl * Hey guys, I don't know if you've seen nix-csi yet. It's a CSI implementation that's intended to mount /nix into Kubernetes containers. It's under active development but the paths I'm using work as-is already. (Supplying an expression in volumeAttributes and having nix-csi build it). I have written the code for specifying prebuilt storePaths as well but haven't started testing it yet ๐Ÿ˜„ 12:22:15
@lillecarl:matrix.orglillecarlAlso: Would some moderator maybe add some keywords into the channel description? ๐Ÿ˜„ #kubernetes #terraform are the ones I'd like discoverability for off the top of my head ๐Ÿ˜„12:23:12
@lillecarl:matrix.orglillecarl* Also: Would moderator maybe add some keywords into the channel description? ๐Ÿ˜„ #kubernetes #terraform are the ones I'd like discoverability for off the top of my head ๐Ÿ˜„12:23:18
@frederic:scs.ems.hostFrรฉdรฉric Christ (old)

Hi lillecarl ! That sounds pretty cool. I'll check this out.

Regarding keywords: Here in the room seems no moderator available. It's probably more effective requesting that in https://matrix.to/#/#matrix-suggestions:nixos.org

12:26:15
@lillecarl:matrix.orglillecarl * Hey guys, I don't know if you've seen nix-csi yet. It's a CSI implementation that's intended to mount /nix into Kubernetes containers. It's under active development but the paths I'm using work as-is already. (Supplying an expression in volumeAttributes and having nix-csi build it). I have written the code for specifying prebuilt storePaths as well but haven't started testing it yet ๐Ÿ˜„
Edit: The cool bits is that it uses one store per host (doesn't have) to be a NixOS node which is the USP over nix-snapshotter. And the mounted /nix stores are hardlinked views over the shared store so it's 0 storage overhead and page-cache sharing just like nix-snapshotter ๐Ÿ˜„
12:27:21
@lillecarl:matrix.orglillecarl Frรฉdรฉric Christ: If you're curious to try out nix-csi I would happily hold your hand ๐Ÿ˜„ The deployment docs are quite sparse still 12:28:00
@lillecarl:matrix.orglillecarl I implemented support for setting storepaths as volumeAttributes now, this will make nix-csi fetch from cache and do no building at all. Verbose(r) explanation here 13:52:36
@marcusramberg:matrix.orgMarcusnix-csi seems quite interesting ๐Ÿ™‚21:46:54
@ggpeti:bassin.clubggpeti left the room.21:48:41
@marcusramberg:matrix.orgMarcushttps://github.com/Lillecarl/nix-csi/blob/main/python/nix_csi/runbuild.py#L9 love the default node name ๐Ÿ˜†21:49:43
@lillecarl:matrix.orglillecarl

Happy to hear, I'm excited AF2.0 to be honest ๐Ÿ˜„

[01:57:50]โŒ127 โฏ echo $hostname
shitbox

I posted the first actual example of using easykubenix + nix-csi in the announcement thread now ๐Ÿ˜„

23:59:52
24 Oct 2025
@lillecarl:matrix.orglillecarlshitbox IRL ๐Ÿคช
Download shitbox IRL ๐Ÿคช
00:01:57
@lillecarl:matrix.orglillecarl I've also got terragrunix in the early stages. Right now it's missing generating the TF lockfile in a drv (required since TF want's to write the lockfile temporarily in module dir but it's RO), it's going to be terragrunt + terranix essentially.
Reminds me of the time when I came into a consulting job where they had 300 Terrraform states for one environment, someone somehow misunderstood terragrunt and split essentially every resource into it's own terragrunt unit. I quit that job, it was a loser society ๐Ÿ˜ธ
00:25:02
@lillecarl:matrix.orglillecarl * I've also got terragrunix in the early stages. Right now it's missing generating the TF lockfile in a drv (required since TF wants to write the lockfile temporarily in module dir but it's RO), it's going to be terragrunt + terranix essentially.
Reminds me of the time when I came into a consulting job where they had 300 Terrraform states for one environment, someone somehow misunderstood terragrunt and split essentially every resource into it's own terragrunt unit. I quit that job, it was a loser society ๐Ÿ˜ธ
00:36:51
@lillecarl:matrix.orglillecarlI don't think Terragrunt is worth the effort when rendering config with Nix anyways, it really really tries to own tofu more than I'd like it to. What do you guys use to manage multiple states and data between them? terranix + some build system and remote_state?22:29:40
27 Oct 2025
@genadij.udarov:matrix.orggenadij.udarov joined the room.16:35:29
28 Oct 2025
@puffnfresh:chat.home.brianmckenna.orgpuffnfresh joined the room.08:30:03
31 Oct 2025
@purrtner:matrix.orgpurrtner joined the room.23:56:13
2 Nov 2025
@lillecarl:matrix.orglillecarl

Still looking for Kubernetes users to try out nix-csi! ๐Ÿ˜„ It's got a in-cluster cache (ssh-ng) now and you can reuse "builder nodes" as your own build cluster. The cache pod maintains a /etc/nix/machines config you can SCP onto your machine and with some ssh_config you get all builder labeled nodes accessible from nix CLI on your machine:

scp cachenodeip:/etc/nix/machines ./machines && nix build --builders @$PWD/machines

^ Pretty much like this, the list is always up2date on the cache (watching pod nix-csi-node pod events). Works with aarch64-linux and x86_64-linux so for cross-building it's pretty neat.

Still investigating the proper way to trigger cache population within the cluster when doing remote builds

17:03:49
@lillecarl:matrix.orglillecarl *

Still looking for Kubernetes users to try out nix-csi! ๐Ÿ˜„ It's got a in-cluster cache (ssh-ng) now and you can reuse CSI pods as your own build cluster. The cache pod maintains a /etc/nix/machines config you can SCP onto your machine and with some ssh_config you get all builder labeled nodes accessible from nix CLI on your machine:

scp cachenodeip:/etc/nix/machines ./machines && nix build --builders @$PWD/machines

^ Pretty much like this, the list is always up2date on the cache (watching pod nix-csi-node pod events). Works with aarch64-linux and x86_64-linux so for cross-building it's pretty neat.

Still investigating the proper way to trigger cache population within the cluster when doing remote builds

17:04:42
@zhaofeng:zhaofeng.liZhaofeng Li joined the room.17:30:41
@erikeah:matrix.orgErik @lillecarl:matrix.org: first time I have heard of nix-csi, definitively I will give a try. I found it really amazing! 20:49:02

Show newer messages


Back to Room ListRoom Version: 6