nix/hosts/laptop-server/config/display.nix

25 lines
522 B
Nix
Raw Permalink Normal View History

2024-12-11 21:41:41 -07:00
{ pkgs, ... }:
2024-12-11 19:32:45 -07:00
{
# Set US keyboard
services.xserver.xkb = {
layout = "us";
variant = "";
};
2024-12-11 21:41:41 -07:00
# Enable KMSCon instead of default tty
services.kmscon = {
enable = true;
useXkbConfig = true;
2024-12-12 15:15:59 -07:00
hwRender = true;
2024-12-11 21:41:41 -07:00
fonts = [
{
2024-12-12 15:15:59 -07:00
name = "FiraCode Nerd Font";
2024-12-11 21:41:41 -07:00
package = pkgs.nerd-fonts.fira-code;
}
];
};
# Disable sleep on lid close (because server)
services.logind.lidSwitch = "ignore";
2024-12-12 15:15:59 -07:00
}