Skip to content

Commit

Permalink
Improve gpm service
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Apr 18, 2014
1 parent 48d90cf commit 02b9361
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions nixos/modules/services/ttys/gpm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};

};
Expand Down

0 comments on commit 02b9361

Please sign in to comment.