mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-07 13:25:11 +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,
|
||||
# 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user