mirror of
https://github.com/youwen5/nixos.git
synced 2025-01-18 21:22:10 -08:00
31 lines
568 B
Nix
Executable file
31 lines
568 B
Nix
Executable file
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.liminalOS.system.fonts;
|
|
in
|
|
{
|
|
options.liminalOS.system.fonts = {
|
|
enable = lib.mkEnableOption "fonts";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
fonts = {
|
|
enableDefaultPackages = true;
|
|
packages =
|
|
with pkgs;
|
|
[
|
|
noto-fonts-cjk-sans
|
|
(google-fonts.override { fonts = [ "Lora" ]; })
|
|
]
|
|
++ (lib.optionals (!config.liminalOS.theming.enable) [
|
|
noto-fonts
|
|
noto-fonts-emoji
|
|
nerd-fonts.caskaydia-cove
|
|
]);
|
|
};
|
|
};
|
|
}
|