!dGrjXvKnCwVLevgmzo:matrix.org

Stockholm NixOS meetup group

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

Load older messages


SenderMessageTime
21 Oct 2025
@xin:xiny.lixin joined the room.20:40:12
22 Oct 2025
@lillecarl:matrix.orglillecarl"I couldn't sleep" AKA I just implemented running Nix builds in Kubernetes jobs instead of in the DaemonSet. Only partially true because it'll talk to the Nix daemon in the DaemonSet but it can be any node in the cluster, node is selected by label nix.csi/builder but also prioritizes Kubernetes.io/hostname that's the same as the node requesting the build 😄02:51:34
@monotux:socio.topmonotuxwhere do store the artifacts? pvc or s3 or..?08:20:24
@lillecarl:matrix.orglillecarl monotux: The Job reuses the hostPath mount of the CSI (/var/lib/nix-csi/nix) as an optimization, the default labelselector prioritizes building on the node selected to run the pod but if it can't it must go to a binary cache, I didn't finish that bit yet. I did implement an in-cluster cache using openssh and nix-store-ng but the idea is that you'll be able to supply your own build script and upload script along with your own nix.conf to choose where artifacts go yourself so you'll be able to use nix copy, cachix, attic or any other solution (soon ™️) 😄
The initial "paved path" will be the in-cluster nix-store-ng that stores the entire cache on a PVC of your choosing, that bit is implemented within the CSI as an async task running after volume is mounted but I haven't thought made the final decision for where the uploads should happen "in the future". I don't want to upload in the build job since it'll stall volume creation for longer.
The jobs source a build script from a ConfigMap that you can edit, so you can already do the upload in there by overriding the build script to both build and upload 😄
I THINK i'll settle on doing uploads in separate jobs that has the node picked as the same one who ran the build, it's very fast enough to create that run with a scratch image that's already cached and reuse the same hostPath mounted store for that operation too.
10:25:27
@lillecarl:matrix.orglillecarlShort answer: It'll be your choice eventually 😄10:25:41
@monotux:socio.topmonotux I'm still just building locally on each machine like a caveman, I should look into something better for my pi's i 10:28:22
@monotux:socio.topmonotux Last time I needed something robust on a rpi I went with alpine Linux running memory semi-immutable 10:29:13
@lillecarl:matrix.orglillecarlI haven't tried out S3 caching yet but it seems simple enough for a private cache, you set object lifetime to a month and sign the packages before you ship 😄10:33:00
@ahbk:matrix.orgI use NixOS btwYo is it meetup today?10:54:34
@lillecarl:matrix.orglillecarl
In reply to @ahbk:matrix.org
Yo is it meetup today?
Yes!
12:53:30
@ahbk:matrix.orgI use NixOS btwWhen and where?12:54:14
@lillecarl:matrix.orglillecarl@room time for meet-up today, same place, same time [forum post](https://discourse.nixos.org/t/nix-meetup-in-stockholm-sweden/32867/70)! See you there 🤩13:03:21
@lillecarl:matrix.orglillecarl* @room time for meet-up today, same place, same time [forum post](https://discourse.nixos.org/t/nix-meetup-in-stockholm-sweden/32867/70) ! See you there 🤩13:03:43
@lillecarl:matrix.orglillecarl* @room time for meet-up today, same place, same time https://discourse.nixos.org/t/nix-meetup-in-stockholm-sweden/32867/70 See you there! 🤩13:05:00
@lillecarl:matrix.orglillecarlimage.png
Download image.png
22:35:27
@lillecarl:matrix.orglillecarlThese meme skiddie ricer alphahumans are doing a great service to the community and society! OMG I'M SUPERIOR BECAUSE NIXOS :ddd22:36:13
@lillecarl:matrix.orglillecarl/r/nixos somehow overtook /r/archlinux in terminally online absolute low-tier superhumans. #makenixosworseagain22:38:45
@lillecarl:matrix.orglillecarlSorry for spamming, I'm a bit drunk. A friend got me this "safety third" sticker, I think that's why I want the relaxed sandbox and no flakes 😝
Download Sorry for spamming, I'm a bit drunk. A friend got me this "safety third" sticker, I think that's why I want the relaxed sandbox and no flakes 😝
22:43:35
@claesatwork:matrix.orgClaesI recognize that dog 😍23:14:13
23 Oct 2025
@lillecarl:matrix.orglillecarl

Rickard Nilsson: Implemented the storepath operation mode now where nix-csi just fetches from cache and mounts here

If you use this in combination with easykubenix which now has support for uploading the generated manifests to cache it's really quite convenient.

The manifest could be built with nixbuild 😄

14:15:52
@monotux:socio.topmonotuxoff-topic, but we've just had some proper stockholms-vinter here in Kiruna the last few days (we are waiting for the real deal...)19:20:25
@monotux:socio.topmonotuxima_817cf68.jpg
Download ima_817cf68.jpg
19:20:25
@lillecarl:matrix.orglillecarlKiruna must stop using flakes!23:05:55
24 Oct 2025
@markuskowa:matrix.orgmarkuskowaSuggested time for the next meet-up is Tuesday, November 11th.14:56:31
@lillecarl:matrix.orglillecarlimage.png
Download image.png
21:24:03
@lillecarl:matrix.orglillecarl markuskowa: Discourse is mad 21:24:09
@markuskowa:matrix.orgmarkuskowaDiscourse prevents you from having a blog style post?21:25:27
@lillecarl:matrix.orglillecarlApparently so, might be because my account is relatively fresh (merged Salsa9 into lillecarl)21:26:05
@markuskowa:matrix.orgmarkuskowaJust posted. Your counter is reset.21:28:19
25 Oct 2025
@claesatwork:matrix.orgClaes Someone posted your Discourse post to Hacker News, @lillecarl:matrix.org https://news.ycombinator.com/item?id=45694510 (It wasn't me) 21:43:39

Show newer messages


Back to Room ListRoom Version: 10