2021-03-09 03:18:52 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let cfg = config.hardware.spacenavd;
|
|
|
|
|
|
|
|
in {
|
|
|
|
|
|
|
|
options = {
|
|
|
|
hardware.spacenavd = {
|
|
|
|
enable = mkEnableOption "spacenavd to support 3DConnexion devices";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2021-04-05 15:23:46 +00:00
|
|
|
systemd.services.spacenavd = {
|
2021-03-09 03:18:52 +00:00
|
|
|
description = "Daemon for the Spacenavigator 6DOF mice by 3Dconnexion";
|
|
|
|
after = [ "syslog.target" ];
|
|
|
|
wantedBy = [ "graphical.target" ];
|
|
|
|
serviceConfig = {
|
|
|
|
ExecStart = "${pkgs.spacenavd}/bin/spacenavd -d -l syslog";
|
|
|
|
StandardError = "syslog";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|