1
0
Fork 1
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:
Eelco Dolstra 2014-04-28 19:12:48 +02:00
parent 93846bef59
commit 685ca50650
2 changed files with 4 additions and 1 deletions

View file

@ -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.

View file

@ -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";