diff --git a/spec/chireiden/default.nix b/spec/chireiden/default.nix index 0e3a9dde..723f3c6a 100644 --- a/spec/chireiden/default.nix +++ b/spec/chireiden/default.nix @@ -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 = [ ];