mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-03 00:15:35 +02:00
meta: Move fonts out of desktop
This commit is contained in:
parent
065c987dff
commit
c23d476f78
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
nix-config,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
@ -9,7 +8,6 @@
|
|||||||
let
|
let
|
||||||
inherit (config.modules.system) username;
|
inherit (config.modules.system) username;
|
||||||
inherit (config.boot) isContainer;
|
inherit (config.boot) isContainer;
|
||||||
inherit (nix-config.packages.${pkgs.system}) aleo-fonts;
|
|
||||||
|
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
mkEnableOption
|
mkEnableOption
|
||||||
@ -142,46 +140,5 @@ in
|
|||||||
wl-clipboard-rs
|
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…
x
Reference in New Issue
Block a user