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:
Ryan Yin
2026-07-06 22:01:18 +08:00
parent c7b82b9e3e
commit 46398fc688
+5 -13
View File
@@ -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;
};
};
}