about summary refs log tree commit diff
path: root/modules/nixos/common/console.nix
blob: 60a7153622a95a600099a07c132d7333cd6d1780 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
  config,
  lib,
  pkgs,
  ...
}:
with lib; {
  console = {
    earlySetup = true;
    colors = take 16 (mapAttrsToList (_: removePrefix "#") config.colourScheme);
    font = "${pkgs.terminus_font}/share/consolefonts/ter-v16b.psf.gz";
    useXkbConfig = config.services.xserver.enable;
  };
}

Consider giving Nix/NixOS a try! <3