mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
24 lines
352 B
Nix
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;
|
|
};
|
|
};
|
|
}
|