1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-04 14:52:34 +03:00
nixpkgs/nixos/modules/services/hardware/spacenavd.nix

22 lines
511 B
Nix
Raw Normal View History

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