1
0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-06-01 18:43:34 +02:00
nixos-hardware/onenetbook/4/default.nix
2021-06-26 12:09:54 +02:00

22 lines
777 B
Nix

{ pkgs, config, ... }:
{
imports = [
../../common/cpu/intel
../../common/pc/laptop
../../common/pc/laptop/ssd
];
# OneNetbook 4 has `GXTP7386:00 27C6:011A Stylus` exporting no buttons in 5.12
# and libinput does't consider it a tablet without them, but a touchscreen.
# This leads to real weird effects,
# starting from clicking as soon as the pen gets tracked.
# A kernel patch exists to resolve that, compiled as an out-of-tree module here
# to avoid recompiling the kernel for such a small change.
# `hid-multitouch-onenetbook4` is the fixed one, don't use `hid-multitouch`.
boot.blacklistedKernelModules = [ "hid-multitouch" ];
boot.extraModulePackages = [
(config.boot.kernelPackages.callPackage ./goodix-stylus-mastykin {})
];
}