spec(chireiden): add trackpad driver workaround

This commit is contained in:
514fpv 2024-02-09 22:25:08 +08:00
parent 5ce7baf82b
commit c4a1aca4bb
Signed by: koishi
SSH key fingerprint: SHA256:VkIdW3jUIiqecV2WNAje2fGU5lEhN0XZ58DN0NS4pv0

View file

@ -1,4 +1,4 @@
{
{ pkgs, ... }: {
global = {
id = "5d3c16fe58444e12ad621600039f10af";
fs.esp.uuid = "32A5-6257";
@ -30,6 +30,18 @@
nvidiaBusId = "PCI:5:0:0";
};
# trackpad driver resume workaround
systemd.services.trackpad-workaround = {
description = "Reload trackpad driver";
after = [ "suspend.target" ];
wantedBy = [ "suspend.target" ];
path = with pkgs; [ kmod ];
script = ''
modprobe -r psmouse
modprobe psmouse
'';
};
hardware.enableRedistributableFirmware = true;
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];