diff --git a/modules/nixos/desktop/fonts.nix b/modules/nixos/desktop/fonts.nix index d9487595..84820f7c 100644 --- a/modules/nixos/desktop/fonts.nix +++ b/modules/nixos/desktop/fonts.nix @@ -55,19 +55,11 @@ # It supports a richer feature set than the standard linux console VT, # including full unicode support, and when the video card supports drm should be much faster. enable = true; - fonts = with pkgs; [ - { - name = "Maple Mono NF CN"; - package = maple-mono.NF-CN-unhinted; - } - { - name = "JetBrainsMono Nerd Font"; - package = nerd-fonts.jetbrains-mono; - } - ]; extraOptions = "--term xterm-256color"; - extraConfig = "font-size=14"; - # Whether to use 3D hardware acceleration to render the console. - hwRender = true; + config = { + font-name = "Maple Mono NF CN"; + font-size = 14; + hwaccel = true; + }; }; }