Using rust-bindgen in Nix
Getting things linking.
While building the Nix packages for pl/Rust I bumped into a curious issue: I couldn't link to
stdbool.h! They were clearly on my path, too.
Custom live media with Nix flakes
How to make live media with Nix flakes.
I've always been quite fond of booting live media. To test or install a new operating system, to recover an old one, find some privacy, or to do a myriad of other specialized tasks. LiveUSBs and liveCDs introduced to me a new way of thinking about my computer.
It improved my mental model of the separation of between the machine, the UEFI (or BIOS), any bootloaders, and the operating system itself.
As I learnt about them over 15 years ago I spent months exploring ways to use them. I used them to rescue systems for myself and others, diagnose hardware, recovery files, and quickly set up machines.
With Nix flakes, we can define a custom live system and build it with minimal steps. This NixOS live system which could be a composition of existing NixOS modules, or an entirely new configuration.Continue reading...