mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
18 lines
259 B
Nix
18 lines
259 B
Nix
|
{gpm, gpmConfig}:
|
||
|
|
||
|
let
|
||
|
gpmBin = "${gpm}/sbin/gpm";
|
||
|
|
||
|
in
|
||
|
{
|
||
|
name = "gpm";
|
||
|
job = ''
|
||
|
description = "General purpose mouse"
|
||
|
|
||
|
start on udev
|
||
|
stop on shutdown
|
||
|
|
||
|
respawn ${gpmBin} -m /dev/input/mice -t ${gpmConfig.protocol} -D &>/dev/null
|
||
|
'';
|
||
|
}
|