This commit is contained in:
Nox Sluijtman 2025-04-05 00:31:32 +02:00
parent 579fc14a49
commit ae65065d5c
Signed by: Egg
SSH key fingerprint: SHA256:2sG9X3C7Xvq2svGumz1/k7cm8l4G9+qAtAeugqB4J9M

View file

@ -1,7 +1,14 @@
{ pkgs, config, lib, ... }:
{
pkgs,
config,
lib,
...
}:
with lib;
let cfg = config.voidconf.fontConfig;
in {
let
cfg = config.voidconf.fontConfig;
in
{
options.voidconf.fontConfig = {
enable = mkEnableOption "Enable opinionated font configuration";
joyPixels = mkEnableOption "Enables the JoyPixels font";
@ -10,7 +17,12 @@ in {
fonts = {
fontDir.enable = true;
packages = with pkgs; [
(nerdfonts.override { fonts = [ "FiraCode" "Iosevka" ]; })
(nerdfonts.override {
fonts = [
"FiraCode"
"Iosevka"
];
})
baekmuk-ttf
blackout
bqn386
@ -29,6 +41,7 @@ in {
noto-fonts-emoji
noto-fonts-cjk-sans
noto-fonts-cjk-serif
orbitron
prociono
ubuntu_font_family
uiua386
@ -64,7 +77,10 @@ in {
"Baekmuk Dotum"
"Noto Color Emoji"
];
emoji = [ "Noto Color Emoji" (mkIf cfg.joyPixels "JoyPixels") ];
emoji = [
"Noto Color Emoji"
(mkIf cfg.joyPixels "JoyPixels")
];
};
localConf = ''