Installing monospaced font in nixos
One day I have realized that it would be nice if Emacs would auto complete my writing. Not coding (have corfu for that), but writing. Remembered that company-mode does that.
Okay, installed company and then noticed that it's misbehaving.. So I created an issue - https://github.com/company-mode/company-mode/discussions/1475#discussioncomment-9732566
Then realized it's not a problem with company-mode, but it's a problem with fonts on my NixOS installation.
Let's try to fix it:
Check the fonts on nixos:
nixos-option fonts.packages
List the fonts:
fc-list
Got recommended to install fira-code font.
On work machine nixos installed it as such (emacs used it by default):
# fire-code monospace font, so stuff is aligned in Emacs fira-code
AT home machine installed as such(for some reason had to explicitly apply the font also):
# installing monospaced font so stuff aligns well in Emacs fira-code fonts = { enableDefaultFonts = true; fonts = with pkgs; [ fira-code ]; };
Then everything was fixed. Wohoo!