2019-06-22 20:38:52 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2019-02-26 13:44:40 +01:00
|
|
|
|
2019-03-20 02:57:59 +01:00
|
|
|
with lib;
|
|
|
|
|
|
|
|
mkIf (elem "udev" config.machine.services) {
|
2019-06-22 20:38:52 +02:00
|
|
|
hardware.steam-hardware.enable = true;
|
2019-02-26 13:44:40 +01:00
|
|
|
services.udev.extraRules = ''
|
2019-06-22 20:38:52 +02:00
|
|
|
# IPTS Touchscreen (SP2017)
|
|
|
|
SUBSYSTEMS=="input", ATTRS{name}=="ipts 1B96:001F SingleTouch", ENV{ID_INPUT_TOUCHSCREEN}="1", SYMLINK+="input/touchscreen"
|
|
|
|
# IPTS Pen (SP2017)
|
|
|
|
SUBSYSTEMS=="input", ATTRS{name}=="ipts 1B96:001F Pen", SYMLINK+="input/pen"
|
2019-02-26 13:44:40 +01:00
|
|
|
'';
|
|
|
|
}
|