You need additional parenthesis, otherwise you’re building a list with
two elements: nerdfonts.override and { withFont = "InconsolataLGC"; }. (and add a ; after "InconsolataLGC")
However, you should be aware that installing only the inconsolata-lgc
font will still consume space on your hard drive, as you’ll have to
build it yourself, and that’ll trigger the full .tar.gz download from
nerdfonts. It should go away after a garbage-collection, though.
Also, font name “InconsolataLGC” appears to not exist.
I guess you want with pkgs; [ (nerdfonts.override { withFont = "Inconsolata"; }) ] or with pkgs; [ (nerdfonts.override { withFont = "InconsolataGo"; }) ] (names selected from the error message given by
trying with InconsolataLGC)