I’m running NixOS 26.05 (Yarara) NixOS under WSL-2 and in my home.nix I have defined:
fonts = {
fontconfig = {
enable = true;
defaultFonts = {
serif = [
"Liberation Serif"
"Vazirmatn"
];
sansSerif = [
"Ubuntu"
"Vazirmatn"
];
monospace = [
"Ubuntu Mono"
"JetBrainsMono Nerd Font"
];
};
};
};
In my packages I have
home.packages = with pkgs; [
noto-fonts
noto-fonts-cjk-sans
noto-fonts-color-emoji
liberation_ttf
fira-code
fira-code-symbols
mplus-outline-fonts.githubRelease
nerdfix
dina-font
I did a rebuild:
“sudo nixos-rebuild boot --flake /mnt/wsl/projects/git/dotfiles/nixos-wsl/nixos/#nixos”
and got a new configuration created
I did
fc-cache -f -v
but
fc-list
/nix/store/1a05sfbahpf31hlvlq48czd95hffcwv4-dejavu-fonts-minimal-2.37/share/fonts/truetype/DejaVuSans.ttf: DejaVu Sans:style=Book
Is only showing
/nix/store/1a05sfbahpf31hlvlq48czd95hffcwv4-dejavu-fonts-minimal-2.37/share/fonts/truetype/DejaVuSans.ttf: DejaVu Sans:style=Book
What am I doing wrong