!dGrjXvKnCwVLevgmzo:matrix.org

Stockholm NixOS meetup group

49 Members
Monthly meetups in Stockholm, Sweden around Nix releated topics(nixos.org)14 Servers

Load older messages


SenderMessageTime
29 Oct 2025
@lillecarl:matrix.orglillecarlhttps://github.com/Lillecarl/nix-csi/commit/8ddd8f457b38a22bbfb56b5d7e71b4f22c17df65 https://github.com/Lillecarl/lix/commit/b5e5a56b93da57239feb192416291af21df8dfe8 Time based GC for nix-csi!!! Keeps paths around if they've been queried by nix-daemon somehow I also reworked how builds are run, instead of doing Kubernetes jobs I query the APIserver for CSI pods running on nodes with label "nix.csi/builder" and add them as builders. It's all hackpatchy still, I'm using the same ssh keys as host keys, and aith keys on all containers 🤢 One of the more prominent Lix developers said they're never implementing the timegc thingy into Lix, but they do have some RPC ideas where you can subscribe to Lix events, which can be used to implement the same thing with extra steps01:02:33
@lillecarl:matrix.orglillecarlThere's a Python library called "kr8s" which truly makes Kubernetes nice to work with from Python. "It's like kubectl but Python" which is soooo nice01:04:05
@lillecarl:matrix.orglillecarlThere might be a little "race" if paths are queried and updated when using nix-store --gc --print-dead which i use to get candidate paths 😸 When testing locally I didn't consider that I don't run the patched daemon everywhere01:48:09
@lillecarl:matrix.orglillecarl* There might be a little "race" if paths are queried and updated when using nix-store --gc --print-dead which i use to get candidate paths 😸 When testing locally I didn't consider that I don't run the patched daemon everywhere, that's for tomorrow!01:48:14
@claesatwork:matrix.orgClaes@lillecarl, you are becoming famous. They discussed your stuff in Full time Nix podcast, 16 minutes in https://pca.st/episode/c49fbdb3-6fd4-41a2-9023-6d482ab0b8f0?t=101223:37:39
@claesatwork:matrix.orgClaes* lillecarl: you are becoming famous. They discussed your stuff in Full time Nix podcast, 16 minutes in https://pca.st/episode/c49fbdb3-6fd4-41a2-9023-6d482ab0b8f0?t=101223:37:57
@claesatwork:matrix.orgClaes* @lillecarl:matrix.org: you are becoming famous. They discussed your stuff in Full time Nix podcast, 17:20 minutes in https://pca.st/episode/c49fbdb3-6fd4-41a2-9023-6d482ab0b8f0?t=101223:38:41
@claesatwork:matrix.orgClaes* @lillecarl:matrix.org: you are becoming famous. They discussed your stuff in Full time Nix podcast, 17:00 minutes in https://pca.st/episode/c49fbdb3-6fd4-41a2-9023-6d482ab0b8f0?t=101223:40:14
@lillecarl:matrix.orglillecarl Claes: I shoudl've kept it quiet for longer :p there's still so much to trim 23:41:29
@lillecarl:matrix.orglillecarlThanks for the links though :d23:41:39
@claesatwork:matrix.orgClaesDawn tried to pronounce your name, funny23:42:04
@lillecarl:matrix.orglillecarl😆 Ernst Carl++ 23:43:28
@lillecarl:matrix.orglillecarlI don't remember who mentioned it last meetup (I think it was you), the Ernst thing is legt top tier 😄23:44:33
@claesatwork:matrix.orgClaesYeah I mentioned that people think you are Ernst. Or the other way around, hard to tell!23:46:36
@lillecarl:matrix.orglillecarlI am Ernst, the 30 year old immature impatient dickhead with a passion 😆23:48:43
@claesatwork:matrix.orgClaesand you like home modelling and baking bread I am sure23:51:33
@lillecarl:matrix.orglillecarlHe missed the part where it doesn't require anything from the kube node (Yeah you can install nix-snapshotter anywhere). But I think that's fine to misunderstand/misinterpret bits 😄23:55:42
@lillecarl:matrix.orglillecarlThe real deal is: This can be deployed with "YAML" and nothing else 😄 Whatever Kube you're running, wherever it's running23:56:47
@lillecarl:matrix.orglillecarlnix-snapshotter requires you to install containerd and configure a nix-snapshotter plugin into containerd so it can read the pod manifest URL as storepaths, something something23:58:19
@lillecarl:matrix.orglillecarlHappy to see it being heard! In a few weeks I reckon i'll be able to do a 1.0 actually. Most things have been considered23:59:34
30 Oct 2025
@lillecarl:matrix.orglillecarlCurrently I'm digging through Lix codebase to implement the "time based GC" thing i keep talking about00:00:14
1 Nov 2025
@lillecarl:matrix.orglillecarl The "solution": Just query the nix database for old registrationTime paths and run nix store delete on them, if they're gcrooted the delete fail. This way the hack that updates registrationTime whenever a path is queried works since we won't do any querying 😄 22:02:05
@markuskowa:matrix.orgmarkuskowaSounds simple and less intrusive than patching lix/nix22:03:41
@lillecarl:matrix.orglillecarlNono I'm still patching Lix, though it's a very tiny patch and you don't have to patch your client, the service just runs a slightly patched Lix to do the updating whenever a path is queried. There's no way around that except running a command after nix build or nix copy which I don't think is nice at all 😄22:05:56
@lillecarl:matrix.orglillecarlTook FOREVER to build the patched Lix for aarch6422:06:44
@markuskowa:matrix.orgmarkuskowaDid you give nixbuild.net a try?22:16:54
@lillecarl:matrix.orglillecarl A long long time ago, it's very good 22:19:48
@lillecarl:matrix.orglillecarl * 22:20:50
@markuskowa:matrix.orgmarkuskowaAh yes, but it is very good for these big builds. Brings the build time down from forever to short.22:24:45
@lillecarl:matrix.orglillecarl

https://www.meetup.com/openstack-user-group-sweden/ <- I should've posted this earlier but there's an infrastructure event held every not so often which I'm gonna start attending. And their notes:

This includes hardware platforms, infrastructure-as-a-Service, virtualisation (kvm, proxmox, etc.), open-source operating systems (Nix anyone?)

22:27:56

Show newer messages


Back to Room ListRoom Version: 10