Files
nixos-config/hardware/p8-laptop.nix
2024-03-27 21:41:40 +00:00

31 lines
545 B
Nix

{ config, lib, pkgs, ... }:
{
# Add Intel UHD vaapi support
imports = [
./intel-uhd.nix
];
# Fix on boot framebuffer res and rotation
boot.kernelParams =
[
"video=efifb:mode=0"
"fbcon=rotate:1"
];
boot.kernelPackages = pkgs.linuxPackages_latest;
# Provide rotation to X/Wayland
services.xserver.xrandrHeads =
[
{
output = "DSI-1";
primary = true;
monitorConfig = ''
Option "Rotate" "left"
'';
}
];
}