Font-awesome and i3 workspaces

Hi, relatively new to nixos (daily driver for couple of weeks now) and very new to i3 (still exploring it)

I installed font-awesome and copied some icons to the names of workspaces as following

# in my configuration.nix
environment.systemPackages = with pkgs; [
  font-awesome
  ...
];

# in my i3 config file
set $ws1 "1: term+browser"
set $ws2 "2: comms+music"
set $ws3 "3: mail"

The icons show inside the terminal when I copy-paste them, but look like a box with hex characters inside in the i3 bar

I don’t know where to begin to debug this, so any pointers are appreciated

Use fc-list to find font names. Then configure the bar to use a font that has those characters.

Thanks @waffle8946 that was the clue that lead me to the solution.

Apparently to install a font you use fonts.packages rather than systemPackages or user packages (source: https://nixos.wiki/wiki/Fonts)