mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
295acf0460
This is the configuration supported by upstream.
27 lines
579 B
Nix
27 lines
579 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let cfg = config.hardware.spacenavd;
|
|
|
|
in {
|
|
|
|
options = {
|
|
hardware.spacenavd = {
|
|
enable = mkEnableOption "spacenavd to support 3DConnexion devices";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
systemd.services.spacenavd = {
|
|
description = "Daemon for the Spacenavigator 6DOF mice by 3Dconnexion";
|
|
after = [ "syslog.target" ];
|
|
wantedBy = [ "graphical.target" ];
|
|
serviceConfig = {
|
|
ExecStart = "${pkgs.spacenavd}/bin/spacenavd -d -l syslog";
|
|
StandardError = "syslog";
|
|
};
|
|
};
|
|
};
|
|
}
|