Add specific conf for intel laptop

This commit is contained in:
Vili Sinervä 2025-01-13 17:59:00 +02:00
parent 90251ce7a6
commit 8a452e7587
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
2 changed files with 8 additions and 2 deletions

View file

@ -1,8 +1,14 @@
{ config, pkgs, ... }:
{
hardware.graphics = {
extraPackages = with pkgs; [
intel-media-driver
intel-compute-runtime
];
};
services = {
xserver = pkgs.lib.mkIf config.services.xserver.enable {
videoDrivers = [ "modesetting" ];
deviceSection = ''
Option "DRI" "2"
Option "TearFree" "true"

View file

@ -58,7 +58,7 @@
../hardware-specific/keychron-q11.nix
../hardware-specific/trackball.nix
../hardware-specific/usb-automount.nix
../hardware-specific/laptop.nix
../hardware-specific/intel-laptop.nix
];
system.autoUpgrade.allowReboot = pkgs.lib.mkForce false;