nixpkgs/upstart-jobs/gpm.nix

18 lines
259 B
Nix
Raw Normal View History

{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
'';
}