mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-08 13:55:07 +02:00
fix(nixos): migrate kmscon to config attrset
Nixpkgs removed services.kmscon.fonts and services.kmscon.extraConfig, so the old font module failed evaluation on current nixos-unstable. Move the selected font, font size, and hardware acceleration settings into services.kmscon.config while keeping the existing terminal type option.
This commit is contained in:
@@ -55,19 +55,11 @@
|
|||||||
# It supports a richer feature set than the standard linux console VT,
|
# 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.
|
# including full unicode support, and when the video card supports drm should be much faster.
|
||||||
enable = true;
|
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";
|
extraOptions = "--term xterm-256color";
|
||||||
extraConfig = "font-size=14";
|
config = {
|
||||||
# Whether to use 3D hardware acceleration to render the console.
|
font-name = "Maple Mono NF CN";
|
||||||
hwRender = true;
|
font-size = 14;
|
||||||
|
hwaccel = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user