diff options
| author | Akshay Nair <phenax5@gmail.com> | 2024-06-21 21:43:39 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2024-06-21 21:43:39 +0530 |
| commit | b8e687924cdea281c574cd73bf79e460e7d48960 (patch) | |
| tree | 02a44bbe723ad4ba80d3b14a4f2d653c77420c64 /hardware | |
| parent | 8278d985c1f0efbd8e4eb132503c800044e2d531 (diff) | |
| download | nixos-config-b8e687924cdea281c574cd73bf79e460e7d48960.tar.gz nixos-config-b8e687924cdea281c574cd73bf79e460e7d48960.zip | |
config sync
Diffstat (limited to 'hardware')
| -rw-r--r-- | hardware/thinkpad-e14/default.nix | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/hardware/thinkpad-e14/default.nix b/hardware/thinkpad-e14/default.nix index 3ce72db..65de753 100644 --- a/hardware/thinkpad-e14/default.nix +++ b/hardware/thinkpad-e14/default.nix @@ -6,7 +6,8 @@ services.fwupd.enable = true; - boot.kernelPackages = pkgs.linuxPackages_6_6; + # boot.kernelPackages = pkgs.linuxPackages_6_9; + boot.kernelPackages = pkgs.linuxPackages_xanmod_stable; boot.initrd = { availableKernelModules = [ "xhci_pci" @@ -27,6 +28,8 @@ "uinput" "v4l2loopback" "acpi_call" + "thinkpad_acpi" + "coretemp" ]; boot.extraModulePackages = with config.boot.kernelPackages; [ acpi_call @@ -46,11 +49,16 @@ boot.extraModprobeConfig = '' options snd slots=snd-hda-intel options v4l2loopback exclusive_caps=1 card_label="Virtual Camera" + options thinkpad_acpi experimental=1 fan_control=1 ''; boot.supportedFilesystems = [ "ntfs" ]; # boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; services.throttled.enable = true; + services.thermald = { + enable = true; + ignoreCpuidCheck = true; + }; services.udev = { packages = [ @@ -59,10 +67,16 @@ ]; }; + environment.systemPackages = with pkgs; [ + mesa + xorg.xf86inputlibinput + xorg.xf86videointel + ]; + # services.xserver.videoDrivers = [ "intel" ]; + hardware = { enableAllFirmware = true; cpu.intel.updateMicrocode = true; - # firmware = with pkgs; [ wireless-regdb rtw88-firmware ]; }; nixpkgs.config.packageOverrides = pkgs: { |
