reorganize hardware

This commit is contained in:
Reid 2026-04-30 17:15:54 -07:00
parent 0d9381864c
commit eecae7fd24
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
8 changed files with 76 additions and 54 deletions

View file

@ -19,9 +19,6 @@
always_full_speed = false;
};
# better performance than the actual intel driver
services.xserver.videoDrivers = [ "modesetting" ];
# replace basic t2 kernel with cachyos kernel
# same patches and i trust it to be more up to date (one time the "latest" was EOL for t2,,,)
# also interesting how this supports l4 but my big computer doesn't...
@ -30,18 +27,10 @@
# fix wifi firmware
hardware.apple-t2.firmware.enable = true;
environment.variables = {
LIBVA_DRIVER_NAME= "iHD";
VDPAU_DRIVER = "va_gl";
};
environment.systemPackages = with pkgs; [ intel-gpu-tools ];
boot.kernelParams = [
# enable the i915 sandybridge framebuffer compression (475mw savings)
"i915.enable_fbc=1"
"i915.enable_gvt=1"
];
hardware.intelgpu.driver = "i915";
# support gen8-11 (i915) rather than gen12+ (xe)
hardware.intelgpu.computeRuntime = "legacy";
hardware.intelgpu.mediaRuntime = "intel-media-sdk";
# fix sleep/suspend
# ty https://github.com/3ulalia/flake/blob/aaddbef19979c6d952f7a763cd9e6225d6330a02/hosts/catalina/default.nix

View file

@ -38,13 +38,6 @@
# security
security.useDoas = true;
};
hardware = {
audio.enable = true;
bluetooth.enable = true;
print.enable = true;
pointer.enable = true;
networking.enable = true;
};
desktop = {
# set to `x11` or `wayland`, improves compat
envProto = "wayland";

View file

@ -4,7 +4,8 @@
imports =
[
inputs.hardware.nixosModules.apple-t2
inputs.hardware.nixosModules.common-cpu-intel
(inputs.hardware + "/common/cpu/intel/ice-lake.nix")
(inputs.hardware + "/common/gpu/intel/ice-lake.nix")
inputs.hardware.nixosModules.common-pc-laptop-ssd
inputs.hardware.nixosModules.common-pc-laptop
@ -21,6 +22,14 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
modules.hardware = {
graphics.i915.enable = true;
audio.enable = true;
bluetooth.enable = true;
networking.enable = true;
pointer.enable = true;
};
fileSystems."/" =
{ device = "/dev/disk/by-uuid/0f09afdc-88e4-4764-818b-77828931278f";
fsType = "ext4";