From 2fdefaac47bdd7c833075abc86fbdcbc52c2ef2a Mon Sep 17 00:00:00 2001 From: Astrid Yu Date: Fri, 8 Mar 2024 21:40:59 -0800 Subject: [PATCH] Add iptsd again --- nix/nixos-modules/astral/hw/surface.nix | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) 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; + }; + }; + }; }; }