mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-03-13 14:28:12 +01:00
meta: Move fonts out of desktop
This commit is contained in:
parent
065c987dff
commit
c23d476f78
@ -1,5 +1,4 @@
|
||||
{
|
||||
nix-config,
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
@ -9,7 +8,6 @@
|
||||
let
|
||||
inherit (config.modules.system) username;
|
||||
inherit (config.boot) isContainer;
|
||||
inherit (nix-config.packages.${pkgs.system}) aleo-fonts;
|
||||
|
||||
inherit (lib)
|
||||
mkEnableOption
|
||||
@ -142,46 +140,5 @@ in
|
||||
wl-clipboard-rs
|
||||
])
|
||||
];
|
||||
|
||||
fonts = {
|
||||
enableDefaultPackages = false;
|
||||
|
||||
packages =
|
||||
[
|
||||
aleo-fonts
|
||||
]
|
||||
++ (with pkgs; [
|
||||
noto-fonts
|
||||
noto-fonts-cjk-serif
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-emoji
|
||||
maple-mono
|
||||
font-awesome
|
||||
(nerdfonts.override { fonts = [ "Noto" ]; })
|
||||
kanji-stroke-order-font
|
||||
liberation_ttf
|
||||
]);
|
||||
|
||||
fontconfig = {
|
||||
defaultFonts = {
|
||||
serif = [
|
||||
"Noto Serif CJK JP"
|
||||
"Noto Serif"
|
||||
];
|
||||
|
||||
sansSerif = [
|
||||
"Noto Sans CJK JP"
|
||||
"Noto Sans"
|
||||
];
|
||||
|
||||
monospace = [
|
||||
"Noto Sans Mono CJK JP"
|
||||
"Noto Sans Mono"
|
||||
];
|
||||
};
|
||||
|
||||
allowBitmaps = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
47
modules/fonts.nix
Normal file
47
modules/fonts.nix
Normal file
@ -0,0 +1,47 @@
|
||||
{ nix-config, pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (nix-config.packages.${pkgs.system}) aleo-fonts;
|
||||
in
|
||||
{
|
||||
fonts = {
|
||||
enableDefaultPackages = false;
|
||||
|
||||
packages =
|
||||
[
|
||||
aleo-fonts
|
||||
]
|
||||
++ (with pkgs; [
|
||||
noto-fonts
|
||||
noto-fonts-cjk-serif
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-emoji
|
||||
maple-mono
|
||||
font-awesome
|
||||
(nerdfonts.override { fonts = [ "Noto" ]; })
|
||||
kanji-stroke-order-font
|
||||
liberation_ttf
|
||||
]);
|
||||
|
||||
fontconfig = {
|
||||
defaultFonts = {
|
||||
serif = [
|
||||
"Noto Serif CJK JP"
|
||||
"Noto Serif"
|
||||
];
|
||||
|
||||
sansSerif = [
|
||||
"Noto Sans CJK JP"
|
||||
"Noto Sans"
|
||||
];
|
||||
|
||||
monospace = [
|
||||
"Noto Sans Mono CJK JP"
|
||||
"Noto Sans Mono"
|
||||
];
|
||||
};
|
||||
|
||||
allowBitmaps = false;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user