NixOS: Enabling LXD virtual machines using Flakes

Nixpkgs is an ever-increasing collection of software packages for Nix and NixOS. Even with more than 80,000 packages, you easily run in a situation where there is a functionality that is not yet implemented.

Earlier this year, we wrote a tutorial on how to implement your own package in NixOS. The implementation of the package in the system was tedious and required keeping track of the package you wanted to implement.

Let’s dive into a practical example: LXD is a container and virtual machine manager. It endorses virtual machines natively since LXD 4.0. However, running on NixOS breaks the feature, and we have to find workarounds to use it. To allow LXD to start virtual machines on NixOS, we need a fix, and we want it to be both reproducible and portable.

To do so, we are using the lxd-agent feature which effectively fix the aforementionned issue.

Read more
Framework laptop with NixOS, a user feedback

A new job comes with a new laptop. As such, I was given a Framework Laptop DIY Edition with the objective to install and configure it entirely with NixOS. I will share my first impressions after receiving and opening the box, sharing my personal feedback on the hardware. Then, I will go through the various pitfalls I encountered with the installation of NixOS on a Framework Laptop DIY Edition so that you can be up and running in no time.

If you are not familiar with Framework computers, that’s OK. The Framework laptop is relatively new to the market as it was introduced in 2019. What makes the Framework laptops unique is the fact that its parts are easily upgradable, repairable and customizable by the end-user. On order, the DIY edition provide various options to configure your machine, choosing between the operating system, the processor, the memory and

Read more