summary refs log tree commit diff
path: root/nixos/modules/tasks/trackpoint.nix
diff options
context:
space:
mode:
authorJascha Geerds <jg@ekby.de>2014-07-28 23:33:05 +0200
committerJascha Geerds <jg@ekby.de>2014-07-28 23:33:05 +0200
commitead06339b86e6298f1eb2cc1f38a07f71cae99ec (patch)
treef90432bc5877fe6c5b9ab75159eceadb8ed50dbe /nixos/modules/tasks/trackpoint.nix
parent6fe59796b2e79a5c2c15d7977eacb6f08b982a5b (diff)
downloadnixpkgs-ead06339b86e6298f1eb2cc1f38a07f71cae99ec.tar
nixpkgs-ead06339b86e6298f1eb2cc1f38a07f71cae99ec.tar.gz
nixpkgs-ead06339b86e6298f1eb2cc1f38a07f71cae99ec.tar.bz2
nixpkgs-ead06339b86e6298f1eb2cc1f38a07f71cae99ec.tar.lz
nixpkgs-ead06339b86e6298f1eb2cc1f38a07f71cae99ec.tar.xz
nixpkgs-ead06339b86e6298f1eb2cc1f38a07f71cae99ec.tar.zst
nixpkgs-ead06339b86e6298f1eb2cc1f38a07f71cae99ec.zip
Add activationScript for TrackPoint configuration
Diffstat (limited to 'nixos/modules/tasks/trackpoint.nix')
-rw-r--r--nixos/modules/tasks/trackpoint.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/tasks/trackpoint.nix b/nixos/modules/tasks/trackpoint.nix
index d2d46c8c45a..d1c6f8ac156 100644
--- a/nixos/modules/tasks/trackpoint.nix
+++ b/nixos/modules/tasks/trackpoint.nix
@@ -50,6 +50,11 @@ with lib;
     ''
       ACTION=="add|change", SUBSYSTEM=="input", ATTR{name}=="TPPS/2 IBM TrackPoint", ATTR{device/speed}="${toString config.hardware.trackpoint.speed}", ATTR{device/sensitivity}="${toString config.hardware.trackpoint.sensitivity}"
     '';
+
+    system.activationScripts.trackpoint =
+      ''
+        ${config.systemd.package}/bin/udevadm trigger --attr-match=name="TPPS/2 IBM TrackPoint"
+      '';
   };
 
 }