45 lines
993 B
Nix
45 lines
993 B
Nix
{
|
|
flake.modules.nixos.base = {pkgs, ...}: {
|
|
fonts = {
|
|
packages = with pkgs; [
|
|
# GUI
|
|
inter
|
|
corefonts
|
|
roboto
|
|
cantarell-fonts
|
|
# internationalisation
|
|
noto-fonts
|
|
noto-fonts-cjk-sans
|
|
noto-fonts-cjk-serif
|
|
noto-fonts-color-emoji
|
|
noto-fonts-monochrome-emoji
|
|
unifont
|
|
unifont_upper
|
|
unifont-csur
|
|
# terminal
|
|
nerd-fonts.iosevka
|
|
];
|
|
|
|
fontconfig = {
|
|
antialias = true;
|
|
subpixel.rgba = "rgb";
|
|
hinting.enable = true;
|
|
defaultFonts = {
|
|
serif = ["Noto Serif"];
|
|
sansSerif = ["Cantarell"];
|
|
monospace = ["Iosevka Nerd Font"];
|
|
emoji = ["Noto Color Emoji"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
flake.modules.nixos.kdePlasma = {
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
services.displayManager.sddm.settings.Theme.Font =
|
|
lib.concatStrings config.fonts.fontconfig.defaultFonts.sansSerif;
|
|
};
|
|
}
|