Split out P8 config

This commit is contained in:
2024-03-27 21:41:40 +00:00
parent 25532dd2c7
commit e845a600af
2 changed files with 31 additions and 17 deletions

30
hardware/p8-laptop.nix Normal file
View 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"
'';
}
];
}

View File

@@ -4,8 +4,8 @@
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
../../hardware/p8-laptop.nix
../../common.nix
../../hardware/intel-uhd.nix
];
system.copySystemConfiguration = true;
@@ -14,12 +14,6 @@
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelParams =
[
"video=efifb:mode=0"
"fbcon=rotate:1"
];
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.hostName = "talos";
networking.networkmanager.enable = true;
@@ -32,16 +26,6 @@
services.xserver.desktopManager.gnome.enable = true;
services.xserver.xkb.layout = "us";
services.xserver.libinput.enable = true;
services.xserver.xrandrHeads =
[
{
output = "DSI-1";
primary = true;
monitorConfig = ''
Option "Rotate" "left"
'';
}
];
# Enable sound.
sound.enable = true;