diff --git a/modules/font.nix b/modules/font.nix index d1e7c5d..753fcdf 100644 --- a/modules/font.nix +++ b/modules/font.nix @@ -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 = ''