NixOS specialisations
As I reinstalled one of my machines, I decided I would use it for dev work and media management. Those two roles have slightly different expectations in terms of available tools, services, settings, etc. While looking for a solution that didn’t involve a dual boot, a different user, or a full nixos-rebuild, I stumbled upon specialisations. In this post, I’ll use local VPN configuration to show how specialisations work. Goal I want to switch VPN configurations without editing my Nix config and deploying it every time. The machine stays mostly the same. Only a few settings and services change.
nobe4