-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
stylix: delegate default font declarations #366
Comments
Some apps don't respect |
In that case, the options should default to the Considering that the Home Manager |
Perhaps we should simply do nothing for an empty list. This would coincide with supporting I support removing the current defaults since they can make desktop environments which have their own standard font, such as GNOME, look unusual unless the user knows the name of that standard font and explicitly chooses it. |
Yes, not declaring fonts when the In conclusion we declare |
I'm writing here since this discussion might be related to my issue and maybe you guys can clear that up. If it is not, please let me know and I"ll turn somewhere else for help. I just installed Stylix yesterday both in my NixOS as well as my Home Manager config (I have HM set up as standalone). It works well for the most part, but when trying to set default fonts, I encounter errors both during I have used the example from the Stylix book in my config (this is part of a file imported by my HM config): { config, pkgs, ... }:
{
stylix.enable = true;
... omitted for brevity ...
# Fonts config
stylix.fonts = {
# monospace = {
# package = pkgs.nerdfonts.override { fonts = [ “Meslo” ]; };
# name = “MesloLGS Nerd Font”;
# };
sansSerif = {
package = pkgs.dejavu_fonts;
name = “DejaVu Sans”;
};
serif = {
package = pkgs.dejavu_fonts;
name = “DejaVu Serif”;
};
};
} The monospace part is commented out b/c I thought originally, that the error was related to my override. When running I am pretty new to Nix, but I thought I was able to figure out at least syntax errors. However, this gives me a headache. Could it be related to fonts.fontconfig being enabled? Or is there something else I am missing? Thanks in advance for any help or advice! |
Try replacing the |
@trueNAHO: Oh wow, I did not spot that. That's what you get from copy-pasting, I guess :) Thank you so much! And sorry for hijacking this thread with that oversight. |
The
stylix.fonts.emoji
stylix.fonts.monospace
stylix.fonts.sansSerif
stylix.fonts.serif
Stylix options 2 should be removed since NixOS 1 and Home Manager 3 provide the same
fonts.fontconfig.defaultFonts.emoji
fonts.fontconfig.defaultFonts.monospace
fonts.fontconfig.defaultFonts.sansSerif
fonts.fontconfig.defaultFonts.serif
options.
This would close the following tickets:
font_file
declaration #308The text was updated successfully, but these errors were encountered: