2019-12-18 11:32:35 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let cfg = config.hardware.spacenavd;
|
|
|
|
|
|
|
|
in {
|
|
|
|
|
|
|
|
options = {
|
|
|
|
hardware.spacenavd = {
|
2022-08-28 20:18:44 +01:00
|
|
|
enable = mkEnableOption (lib.mdDoc "spacenavd to support 3DConnexion devices");
|
2019-12-18 11:32:35 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2021-04-05 17:44:06 +01:00
|
|
|
systemd.user.services.spacenavd = {
|
2019-12-18 11:32:35 +00:00
|
|
|
description = "Daemon for the Spacenavigator 6DOF mice by 3Dconnexion";
|
|
|
|
wantedBy = [ "graphical.target" ];
|
|
|
|
serviceConfig = {
|
|
|
|
ExecStart = "${pkgs.spacenavd}/bin/spacenavd -d -l syslog";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|