main
1{lib, ...}: {
2 flake.modules.nixos.desktop = _: {
3 # https://wiki.archlinux.org/title/KMSCON
4 services.kmscon = {
5 # Use kmscon as the virtual console instead of gettys.
6 # kmscon is a kms/dri-based userspace virtual terminal implementation.
7 # It supports a richer feature set than the standard linux console VT,
8 # including full unicode support, and when the video card supports drm should be much faster.
9 enable = true;
10 extraOptions = "--term xterm-256color";
11 extraConfig = lib.mkDefault "font-size=12";
12 # Whether to use 3D hardware acceleration to render the console.
13 hwRender = true;
14 };
15 };
16}