1{
2 config,
3 lib,
4 pkgs,
5 ...
6}:
7let
8 cfg = config.hardware.spacenavd;
9in
10{
11 options = {
12 hardware.spacenavd = {
13 enable = lib.mkEnableOption "spacenavd to support 3DConnexion devices";
14 };
15 };
16
17 config = lib.mkIf cfg.enable {
18 systemd = {
19 packages = [ pkgs.spacenavd ];
20 services.spacenavd.enable = true;
21 };
22 };
23}