Build a Nix docker image in Gitlab CI

Frustrated with fetching, checksum checking, and extracting of the packages in a Dockerfile that I need for a project, this week finally found a way to build docker images with Nix. Embedded in nixpkgs there are the functions buildImage and buildLayeredImage. With these functions you can build docker images that are assembled from Nix packages. How wonderful is that? Here is the Nix derivation that I have used: with import <nixpkgs> {}; pkgs.

Zsh abbrev-alias

About a year ago I read this article about abbr by Sean Henderson. He makes some good points that one should not use alias for shortcuts but abbr: Increased performance. Clean history: the full command is logged, not some non-sense shortcut like gs. Less conflicts: shortcuts get expanded, if you want to run another program with the same name as the shortcut you can edit the text after expansion. Fish shell has abbr build in.

Using Rofi to switch Pulseaudio default sink/source

Lately I have to video call a lot for work. From time to time it happens that the default sink or source of Pulseaudio is not correctly set resulting in no mic or no audio during a video call. The default sink or source can be set via the pactl command line: pactl set-default-source alsa_input.usb-046d_0825_67D582F0-02.mono-fallback However, that is a bit cumbersome, especially when you’ve just set up a video call. Searching for better way I found this script which uses Rofi to switch the default Pulseaudio sink.

Make-a-Lisp in Elm

Recently I finished my second Make-a-Lisp (Mal) implementation. What is Mal you ask? Mal is a learning tool made by Joel Martin. Mal is a Clojure inspired Lisp interpreter. Mal is implemented in 68 languages (and counting). Following the 11 step incremental process guide you’ll end up with your very own Lisp interpreter (which is powerful enough to be self-hosting). Along the way you learn a great deal about the programming language you’re implementing in.

NodeMCU with a HD44780 display

Today I tried to hook up a HD44780 LCD display up to a NodeMCU. A week ago i did this with an Arduino, that was relatively easy. I expect a bit more pain with the NodeMCU as there are no standard libraries available for the LCD display i have. For the wiring i followed rougly this guide. At first i was concerned that i needed to use a level shifter for the 5V and 3.


Hello World!