NixCon 2022

Nix for particle accelerators, and the adventure in cross-compilation
2022-10-20 , Main track (Gym)

A presentation of the cross-compilation infrastructure, and the troubles and successes using it for an embedded system.


In the data acquisition / instrumentation world, we often get to use embedded boards provided with a Buildroot or Yocto Linux OS. But, as the project tends to grow, these images tend to get unmaintained, which drove us to try to compile our own Linux images, using NixOS.

We start with an introduction of the cross-compiling infrastructure of nixpkgs, and how you can cross-compile Nix packages, and NixOS images for embedded systems. We will then see how well it applied to our own use case, the troubles it gave us, and how different it is compared to your usual Buildroot or Yocto Linux images.


Do you allow your talk to be recorded? – yes What level of experience in Nix is the talk addressed to?

Mid-level

See also: slides (9.2 MB)

Passionate about the Linux and Open-Source world, I have been interested and involved with the Nix ecosystem since 2017.

Today, I am working in the French Alternative Energies and Atomic Energy Commission (CEA), where I am, among other things, developing Nix solutions for fundamental physics research.