mirror of
https://github.com/nikdoof/nixos-config.git
synced 2025-12-13 09:42:19 +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"
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -4,8 +4,8 @@
|
|||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
../../hardware/p8-laptop.nix
|
||||||
../../common.nix
|
../../common.nix
|
||||||
../../hardware/intel-uhd.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
system.copySystemConfiguration = true;
|
system.copySystemConfiguration = true;
|
||||||
@@ -14,12 +14,6 @@
|
|||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
boot.kernelParams =
|
|
||||||
[
|
|
||||||
"video=efifb:mode=0"
|
|
||||||
"fbcon=rotate:1"
|
|
||||||
];
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
|
|
||||||
networking.hostName = "talos";
|
networking.hostName = "talos";
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
@@ -32,16 +26,6 @@
|
|||||||
services.xserver.desktopManager.gnome.enable = true;
|
services.xserver.desktopManager.gnome.enable = true;
|
||||||
services.xserver.xkb.layout = "us";
|
services.xserver.xkb.layout = "us";
|
||||||
services.xserver.libinput.enable = true;
|
services.xserver.libinput.enable = true;
|
||||||
services.xserver.xrandrHeads =
|
|
||||||
[
|
|
||||||
{
|
|
||||||
output = "DSI-1";
|
|
||||||
primary = true;
|
|
||||||
monitorConfig = ''
|
|
||||||
Option "Rotate" "left"
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
# Enable sound.
|
# Enable sound.
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user