forked from mirrors/nixpkgs
Improve gpm service
This commit is contained in:
parent
48d90cf3b6
commit
02b936189c
|
@ -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";
|
||||
};
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue