Automatic NixOS upgrades with a CI-managed flake lock and deploy keys

Posted on Sat 28 November 2026 in NixOS • Tagged with nixos, flakes, github-actions, auto-upgrade, deploy-keys

Across my NixOS machines, I wanted flake.lock managed in one place for automatic upgrades. A daily GitHub Action updates the lock, and each host pulls it over SSH with its own read-only deploy key.


Continue reading

Unlock a LUKS-encrypted disk over SSH with NixOS initrd networking

Posted on Sun 17 May 2026 in NixOS • Tagged with nixos, luks, ssh, initrd, encryption

A headless server with an encrypted root disk needs a passphrase on every boot. NixOS can bring up the network in the initrd and run an SSH server, so you can unlock the disk from another machine.


Continue reading

Setup Pimoroni OnOff SHIM using Device Tree Overlays

Posted on Sat 30 March 2024 in Hardware • Tagged with raspberrypi, shim, onoff, bookworm

The OnOff SHIM by Pimoroni is a convenient power switch for the Raspberry Pi. The official guide suggests to install a daemon that initiates a clean shutdown on button press. A much simpler solution is to use device tree overlays and avoid 3rd-party tools.


Continue reading

Enable hardware watchdog on Raspberry Pi-powered Volumio audio player

Posted on Thu 28 March 2024 in Audio • Tagged with volumio, raspberrypi, watchdog

The Raspberry Pi features a built-in hardware watchdog timer that automatically resets the system if it becomes unresponsive or freezes. This can be handy when used as an audio player like Volumio - especially if the hardware is not easy to access.


Continue reading

WriteTheDocsEU 2017 post-event wrap-up report

Posted on Sun 24 September 2017 in Documentation • Tagged with writethedocs, documentation, conference, report

A wrap-up of WriteTheDocs EU 2017 in Prague, covering the talks on documentation types, language, getting started guides, and feedback.


Continue reading