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

24 lines
522 B
Nix

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