CMCDragonkai / .dotfiles-nixos

Personal Configuration for NixOS
https://matrix.ai
MIT License
5 stars 1 forks source link

Fonts installed in User Profile no longer work #7

Open CMCDragonkai opened 3 years ago

CMCDragonkai commented 3 years ago
          fonts = buildEnv {
            name = "env-fonts";
            meta.priority = 10;
            paths = [
              fira
              fira-mono
              fira-code
              corefonts
            ];
          };

The above doesn't work even if the cache is refreshed.

The only fonts that can be found are the fonts that are the fonts.fontDir.

Which is:

/run/current-system/sw/share/X11/fonts

How to add profile-level fonts into this directory?

CMCDragonkai commented 3 years ago

Right now, neither kitty console nor vscode can find the Fira Code font family.

CMCDragonkai commented 3 years ago

If we symlink ~/.local/share/fonts to ~/.nix-profile/share/fonts it could work.

CMCDragonkai commented 3 years ago
lrwxrwxrwx  1 cmcdragonkai operators  43 Mar 14 17:44 fonts -> /home/cmcdragonkai/.nix-profile/share/fonts/
CMCDragonkai commented 3 years ago

It turns out Fira Code Retina no longer exists... so it's all just Fira Code.

CMCDragonkai commented 3 years ago

The link should be automatically added or something...

CMCDragonkai commented 3 years ago

This didn't need to be done on an older system... how strange.

CMCDragonkai commented 3 years ago
»» ~/.nix-profile/share/fonts
 ♖ tree . | grep Retina                             pts/3 14:32:41
│   ├── FiraCode-Retina.otf -> /nix/store/1sldx0ry67bvr6nk7pblqdyl2yrr6lh1-fira-code-2/share/fonts/opentype/FiraCode-Retina.otf
    ├── FiraCode-Retina.ttf -> /nix/store/1sldx0ry67bvr6nk7pblqdyl2yrr6lh1-fira-code-2/share/fonts/truetype/FiraCode-Retina.ttf

This exists on an older system.

CMCDragonkai commented 3 years ago

On the desktop system, this symlink is not necessary at all.

However Retina font no longer exists. It's probably part of the main font Fira Code now.

So I'm a bit confused. Will leave this here.