-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: fontconfig via HM doesn't actually work for me (HM installed fonts not seen by applications) #4048
Comments
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/since-upgrade-to-23-05-nerdfonts-wont-show/28636/5 |
Does the generated configuration show up when you run |
For me, it's even stranger: the The directory |
Ok, so I tracked the "hit or miss" nature of the problem down to "Hack Nerd Font Mono", which seems to be a bit problematic. For example, it couldn't be loaded by emacs. I tried other Nerd fonts, and they work. Also in other programs, like konsole or libreoffice. font-manager still doesn't see any Nerd fonts installed by HM. Not a problem for me, though it might indicate not everything is peachy. But it just as well be an issue specific to this program. |
Thank you for your contribution! I marked this issue as stale due to inactivity. Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'. We welcome additional information that will help resolve this issue. Please read the relevant sections below before commenting. If you are the original author of the issue
If you are not the original author of the issue
Memorandum on closing issuesDon't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort. |
Any updates here? Still reproducible |
Thank you for your contribution! I marked this issue as stale due to inactivity. Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'. We welcome additional information that will help resolve this issue. Please read the relevant sections below before commenting. If you are the original author of the issue
If you are not the original author of the issue
Memorandum on closing issuesDon't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort. |
Are you following the right branch?
Is there an existing issue for this?
Issue description
I just moved the many "extra" fonts for my HM user from the global
nixos
config into my HM-config.So I have:
When e.g. running
font-manager
I can only see the fonts that were installed system wide (viafonts = [ ... ];
inconfiguration.nix
.Running
fc-cache --force --verbose
gives me many errors about "looped dirs" (safe to ignore as duplicates?) and non-writable cache dir(s). The latter is to be expected if I understand correctly, since the cache is read-only by design and built to the nix store by the HM module. Sofc-cache
is ineffectual as well by design for this setup, I guess.I checked and have
~/.config/fontconfig/conf.d/10-hm-fonts.conf
, containingThe first
<include>
appears to be the same one that is pointed to by~/.nix-profile/etc/fonts/conf.d
,the second doesn't exist (?!), the second and fourth
<dir>
entries are also the same/nix/store
path content and theX11
don't exist (I'm onwayland
, probably normal).I also have
~/.nix-profile/etc/fonts/
which only contains a dirconf.d
which contains symlinks (e.g.30-courier-new.conf
) to the nix store realisations ofcorefonts
andvistafonts
, which I do have inhome.packages
, but I have many more fonts as well but these are the only ones that are linked here.When I run a
devShell
from a flake that does this:and in this shell start
font-manager
, I indeed see the selected fonts.I.e. that begs the question what HM does differently, or why we can't use
makeFontsConf
in HM as well?So I'm a bit lost why HM fonts management doesn't work for me, but also it might be better to use the same
fonts = [ ... ];
paradigm in HM instead of just putting fonts inhome.packages
?Maintainer CC
@rycee
System information
The text was updated successfully, but these errors were encountered: