Improve gpm service

This commit is contained in:
Eelco Dolstra 2014-04-18 18:45:20 +02:00
parent 48d90cf3b6
commit 02b936189c

View file

@ -40,12 +40,15 @@ in
config = mkIf cfg.enable {
jobs.gpm =
{ description = "General purpose mouse";
systemd.services.gpm =
{ description = "Console Mouse Daemon";
startOn = "started udev";
wantedBy = [ "multi-user.target" ];
after = [ "systemd-udev-settle.service" ];
exec = "${pkgs.gpm}/sbin/gpm -m /dev/input/mice -t ${cfg.protocol} -D &>/dev/null";
serviceConfig.ExecStart = "@${pkgs.gpm}/sbin/gpm gpm -m /dev/input/mice -t ${cfg.protocol}";
serviceConfig.Type = "forking";
serviceConfig.PIDFile = "/run/gpm.pid";
};
};