at 23.11-pre 527 B view raw
1{ config, lib, pkgs, ... }: 2 3with lib; 4 5let cfg = config.hardware.spacenavd; 6 7in { 8 9 options = { 10 hardware.spacenavd = { 11 enable = mkEnableOption (lib.mdDoc "spacenavd to support 3DConnexion devices"); 12 }; 13 }; 14 15 config = mkIf cfg.enable { 16 systemd.user.services.spacenavd = { 17 description = "Daemon for the Spacenavigator 6DOF mice by 3Dconnexion"; 18 wantedBy = [ "graphical.target" ]; 19 serviceConfig = { 20 ExecStart = "${pkgs.spacenavd}/bin/spacenavd -d -l syslog"; 21 }; 22 }; 23 }; 24}