reorganize hardware
This commit is contained in:
parent
0d9381864c
commit
30baa4ce8b
8 changed files with 67 additions and 55 deletions
|
|
@ -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,19 +27,6 @@
|
|||
# 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"
|
||||
];
|
||||
|
||||
# fix sleep/suspend
|
||||
# ty https://github.com/3ulalia/flake/blob/aaddbef19979c6d952f7a763cd9e6225d6330a02/hosts/catalina/default.nix
|
||||
systemd.services."suspend-fix-t2" = {
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
imports =
|
||||
[
|
||||
inputs.hardware.nixosModules.apple-t2
|
||||
inputs.hardware.nixosModules.common-cpu-intel
|
||||
(inputs.hardware + "/common/cpu/intel/ice-lake")
|
||||
(inputs.hardware + "/common/gpu/intel/ice-lake")
|
||||
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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue