treewide: config/nixos/programs/fonts -> modules/nix/core/fonts

This commit is contained in:
Anthony Rodriguez 2025-01-14 13:55:17 +01:00
parent c37f00205b
commit f3c08b8431
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
5 changed files with 32 additions and 30 deletions

View file

@ -1,6 +1,5 @@
{ {
imports = [ imports = [
./programs
./services ./services
]; ];
} }

View file

@ -1,5 +0,0 @@
{
imports = [
./fonts.nix
];
}

View file

@ -1,24 +0,0 @@
{pkgs, ...}: {
fonts = {
enableDefaultPackages = false;
packages = [
pkgs.noto-fonts
pkgs.noto-fonts-cjk-sans
pkgs.noto-fonts-extra
pkgs.intel-one-mono
pkgs.noto-fonts-color-emoji
pkgs.nerd-fonts._0xproto
pkgs.nerd-fonts.symbols-only
];
fontconfig = {
enable = true;
defaultFonts = {
serif = ["Noto Serif"];
sansSerif = ["Inter Medium"];
monospace = ["0xProto Nerd Font"];
emoji = ["Noto Color Emoji"];
};
};
};
}

View file

@ -3,6 +3,7 @@
./hardware ./hardware
./boot.nix ./boot.nix
./fonts.nix
./home-manager.nix ./home-manager.nix
./locales.nix ./locales.nix
./networking.nix ./networking.nix

View file

@ -0,0 +1,31 @@
{
lib,
pkgs,
config,
...
}: {
config = lib.mkIf config.local.profiles.desktop.enable {
fonts = {
enableDefaultPackages = false;
packages = [
pkgs.noto-fonts
pkgs.noto-fonts-cjk-sans
pkgs.noto-fonts-extra
pkgs.intel-one-mono
pkgs.noto-fonts-color-emoji
pkgs.nerd-fonts._0xproto
pkgs.nerd-fonts.symbols-only
];
fontconfig = {
enable = true;
defaultFonts = {
serif = ["Noto Serif"];
sansSerif = ["Inter Medium"];
monospace = ["0xProto Nerd Font"];
emoji = ["Noto Color Emoji"];
};
};
};
};
}