nixos/spacenavd: init
This commit is contained in:
parent
4f19003fec
commit
725966b870
|
@ -377,6 +377,7 @@
|
||||||
./services/hardware/sane.nix
|
./services/hardware/sane.nix
|
||||||
./services/hardware/sane_extra_backends/brscan4.nix
|
./services/hardware/sane_extra_backends/brscan4.nix
|
||||||
./services/hardware/sane_extra_backends/dsseries.nix
|
./services/hardware/sane_extra_backends/dsseries.nix
|
||||||
|
./services/hardware/spacenavd.nix
|
||||||
./services/hardware/tcsd.nix
|
./services/hardware/tcsd.nix
|
||||||
./services/hardware/tlp.nix
|
./services/hardware/tlp.nix
|
||||||
./services/hardware/thinkfan.nix
|
./services/hardware/thinkfan.nix
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
{ 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";
|
||||||
|
after = [ "syslog.target" ];
|
||||||
|
wantedBy = [ "graphical.target" ];
|
||||||
|
serviceConfig = {
|
||||||
|
ExecStart = "${pkgs.spacenavd}/bin/spacenavd -d -l syslog";
|
||||||
|
StandardError = "syslog";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue