diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-18 18:45:20 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-18 18:45:20 +0200 |
commit | 02b936189cb9cc5c2e33eae686bd95ccb2995196 (patch) | |
tree | a04cf517ef1fc8d26cdb321f3398fee2ffea62a0 /nixos/modules/services/ttys | |
parent | 48d90cf3b67d01dd7812ed62dfb916905e34e13a (diff) | |
download | nixlib-02b936189cb9cc5c2e33eae686bd95ccb2995196.tar nixlib-02b936189cb9cc5c2e33eae686bd95ccb2995196.tar.gz nixlib-02b936189cb9cc5c2e33eae686bd95ccb2995196.tar.bz2 nixlib-02b936189cb9cc5c2e33eae686bd95ccb2995196.tar.lz nixlib-02b936189cb9cc5c2e33eae686bd95ccb2995196.tar.xz nixlib-02b936189cb9cc5c2e33eae686bd95ccb2995196.tar.zst nixlib-02b936189cb9cc5c2e33eae686bd95ccb2995196.zip |
Improve gpm service
Diffstat (limited to 'nixos/modules/services/ttys')
-rw-r--r-- | nixos/modules/services/ttys/gpm.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/nixos/modules/services/ttys/gpm.nix b/nixos/modules/services/ttys/gpm.nix index 12fe4e2f84f1..eda062494288 100644 --- a/nixos/modules/services/ttys/gpm.nix +++ b/nixos/modules/services/ttys/gpm.nix @@ -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"; }; }; |