mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 19:51:17 +00:00
6afb255d97
these changes were generated with nixq 0.0.2, by running nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix two mentions of the mdDoc function remain in nixos/, both of which are inside of comments. Since lib.mdDoc is already defined as just id, this commit is a no-op as far as Nix (and the built manual) is concerned.
25 lines
515 B
Nix
25 lines
515 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.user.services.spacenavd = {
|
|
description = "Daemon for the Spacenavigator 6DOF mice by 3Dconnexion";
|
|
wantedBy = [ "graphical.target" ];
|
|
serviceConfig = {
|
|
ExecStart = "${pkgs.spacenavd}/bin/spacenavd -d -l syslog";
|
|
};
|
|
};
|
|
};
|
|
}
|