diff --git a/nix/nixos-modules/astral/hw/surface.nix b/nix/nixos-modules/astral/hw/surface.nix index 7b69bf18..14820727 100644 --- a/nix/nixos-modules/astral/hw/surface.nix +++ b/nix/nixos-modules/astral/hw/surface.nix @@ -20,15 +20,16 @@ with lib; { ]; services.touchegg.enable = true; - - services.xserver.libinput = { enable = true; }; - - # https://github.com/linux-surface/iptsd/blob/master/etc/ipts.conf - environment.etc."ipts.conf".text = '' - [Config] - BlockOnPalm = true - TouchThreshold = 20 - StabilityThreshold = 0.1 - ''; + services.xserver.libinput.enable = true; + microsoft-surface.ipts = { + enable = true; + config = { + Config = { + BlockOnPalm = true; + TouchThreshold = 20; + StabilityThreshold = 0.1; + }; + }; + }; }; }