Skip to main content

Building a digital inventory with NixOS modules

UA2.118 (Henriot) | Day 1 | 17:05 - 17:10 | Speakers: Vojtěch Káně

Building a digital inventory with NixOS modules
A picture of a devroom at FOSDEM 2024
Open in browser

Notes

Abstract

I'll present my story of building a machine-readable inventory of computing equipment of my employer. It collects information such as: “This computer is located in this room with this network configuration, these software requirements and is connected to this port of this switch” so that I can easily develop scripts that configure the machine, the switch, monitoring of both and many other things including a physical map.

I went through many iterations of this project–codenamed AR–and settled on NixOS modules for their balance between how easy it is to write new records and how easy it is to use them. Let me share the joy it brought to my job and present curated code snippets so you can build your own inventory with ease.


Notice: The placeholder video image is licensed under CC BY-SA 4.0. The original image can be found hereChanges made to the image are: Cropped the image to a new ratio, part of the image was cut off.