nixpkgs/nixos/modules/services/hardware/spacenavd.nix
2024-09-04 19:01:41 +02:00

24 lines
352 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.hardware.spacenavd;
in
{
options = {
hardware.spacenavd = {
enable = lib.mkEnableOption "spacenavd to support 3DConnexion devices";
};
};
config = lib.mkIf cfg.enable {
systemd = {
packages = [ pkgs.spacenavd ];
services.spacenavd.enable = true;
};
};
}