nix-configs/modules/shell/tty.nix

38 lines
704 B
Nix
Raw Normal View History

2025-04-11 09:20:46 +02:00
{ config, ... }:
let
generateOptions =
with builtins;
(opts: toString (attrValues (mapAttrs (name: value: "--${name} ${toString value}") opts)));
in
{
2024-03-05 13:38:05 +01:00
# TODO: global colorscheme vars for everything
console.colors = [
"282828"
"cc241d"
"98971a"
"d79921"
"458588"
"b16286"
"689d6a"
"a89984"
"928374"
"fb4934"
"b8bb26"
"fabd2f"
"83a598"
"d3869b"
"8ec07c"
"ebdbb2"
];
2024-02-18 01:25:18 +01:00
services.kmscon = {
enable = true;
extraConfig = "font-size=14";
extraOptions = generateOptions {
xkb-layout = config.services.xserver.xkb.layout;
xkb-variant = config.services.xserver.xkb.variant;
};
hwRender = true;
};
}