From 685ca50650a466a32358db32c846aa0b452b27bf Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 28 Apr 2014 19:12:48 +0200 Subject: [PATCH] gpm: Depend on /dev/input/mice --- nixos/modules/services/hardware/udev.nix | 3 +++ nixos/modules/services/ttys/gpm.nix | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/hardware/udev.nix b/nixos/modules/services/hardware/udev.nix index 507752dabcf7..f28c00a8e4ef 100644 --- a/nixos/modules/services/hardware/udev.nix +++ b/nixos/modules/services/hardware/udev.nix @@ -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. diff --git a/nixos/modules/services/ttys/gpm.nix b/nixos/modules/services/ttys/gpm.nix index 03b0f39824d0..1c0fcf8f16c7 100644 --- a/nixos/modules/services/ttys/gpm.nix +++ b/nixos/modules/services/ttys/gpm.nix @@ -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";