Improve gpm service
This commit is contained in:
parent
48d90cf3b6
commit
02b936189c
@ -40,12 +40,15 @@ in
|
|||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
jobs.gpm =
|
systemd.services.gpm =
|
||||||
{ description = "General purpose mouse";
|
{ 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…
x
Reference in New Issue
Block a user