Second iteration of migration to NixOS