chore: cleanup thonkpad and use mesa git from chaotic/nyx

Trying out the experimental mesa drivers for the latest Intel Xe support on Wayland

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
Chinmay D. Pai 2024-09-22 14:58:24 +05:30
parent 25ecb1c367
commit 49d65b9cb4
Signed by: thunderbottom
GPG Key ID: 75507BE256F40CED
2 changed files with 11 additions and 7 deletions

View File

@ -6,8 +6,13 @@
}: { }: {
imports = [./hardware.nix]; imports = [./hardware.nix];
chaotic.mesa-git.enable = true;
hardware.cpu.intel.updateMicrocode = true; hardware.cpu.intel.updateMicrocode = true;
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;
hardware.graphics.extraPackages = with pkgs; [
mesa_git.opencl
];
networking.hostName = "thonkpad"; networking.hostName = "thonkpad";
networking.interfaces.wlan0.useDHCP = lib.mkDefault false; networking.interfaces.wlan0.useDHCP = lib.mkDefault false;
@ -37,7 +42,6 @@
extraPackages = with pkgs; [ extraPackages = with pkgs; [
easyeffects easyeffects
glibc glibc
logseq
obsidian obsidian
piper piper
# terraform # terraform

View File

@ -9,20 +9,20 @@ _: {
"sd_mod" "sd_mod"
]; ];
luks.devices."cryptroot".device = "/dev/disk/by-uuid/9de352ea-128f-4d56-a720-36d81dfd9b92"; luks.devices."cryptroot".device = "/dev/disk/by-uuid/9de352ea-128f-4d56-a720-36d81dfd9b92";
luks.devices."cryptroot".bypassWorkqueues = true;
}; };
kernelModules = [ kernelModules = [
"kvm-intel" "kvm-intel"
"thinkpad_acpi" "iwlwifi"
# "iwlwifi"
"xe" "xe"
]; ];
kernelParams = [ kernelParams = [
"quiet" # NixOS produces many wakeups per second, which is bad for battery life.
"xe.force_probe=7d55" # This disables the timer tick on the last 7 cores.
"nohz_full=14-21"
"i915.force_probe=!7d55" "i915.force_probe=!7d55"
"xe.force_probe=7d55"
# "resume_offset=2465529" # "resume_offset=2465529"
"intel_pstate=active"
"thinkpad_acpi.fan_control=1"
]; ];
# resumeDevice = "/dev/disk/by-uuid/870fde90-a91a-4554-8b1c-d5702c789f4d"; # resumeDevice = "/dev/disk/by-uuid/870fde90-a91a-4554-8b1c-d5702c789f4d";
}; };