nixpkgs-suyu/upstart-jobs/gpm.nix
Michael Raskin eff945115b Added gpm service
svn path=/nixos/trunk/; revision=11952
2008-06-03 07:06:35 +00:00

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