mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 21:21:06 +00:00
gpm: Depend on /dev/input/mice
This commit is contained in:
parent
93846bef59
commit
685ca50650
|
@ -20,6 +20,9 @@ let
|
|||
# Miscellaneous devices.
|
||||
KERNEL=="kvm", MODE="0666"
|
||||
KERNEL=="kqemu", MODE="0666"
|
||||
|
||||
# Needed for gpm.
|
||||
KERNEL=="input/mice", TAG+="systemd"
|
||||
'';
|
||||
|
||||
# Perform substitutions in all udev rules files.
|
||||
|
|
|
@ -44,7 +44,7 @@ in
|
|||
{ description = "Console Mouse Daemon";
|
||||
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
requires = [ "getty.target" ];
|
||||
requires = [ "dev-input-mice.device" ];
|
||||
|
||||
serviceConfig.ExecStart = "@${pkgs.gpm}/sbin/gpm gpm -m /dev/input/mice -t ${cfg.protocol}";
|
||||
serviceConfig.Type = "forking";
|
||||
|
|
Loading…
Reference in a new issue