mirror of
https://github.com/nikdoof/nixos-config.git
synced 2025-12-14 02:02:24 +00:00
Split out P8 config
This commit is contained in:
30
hardware/p8-laptop.nix
Normal file
30
hardware/p8-laptop.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ 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"
|
||||
'';
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user