Whethere you are on macOS or NixOS, you can install and setup fonts in an unified fashion with Nix using home-manager.
To do this, add:
{
home.packages = [
# Fonts
cascadia-code
];
fonts.fontconfig.enable = true;
}
The above installs the Cascadia Code font. See this issue for details.
Verify on macOS
To confirm that the font was successfully installed on macOS, you can open the “Font Book” app and search for the font. They will have been installed into $HOME/Library/Fonts/HomeManager
folder.