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