diff options
author | Florian Klink <flokli@flokli.de> | 2021-02-26 22:21:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-26 22:21:21 +0100 |
commit | 43f83f9c456a3ed10ec5f30a8561b5fb179d53a6 (patch) | |
tree | 006000eb20115ef5148bf0790ee624bffeb192bb /nixos/modules/services/hardware | |
parent | d47ee0e7781d9c52864a5772b108bd3392419a3d (diff) | |
parent | 455cb9f91384bc6f2b26342e6f1ada7dcdcb5a54 (diff) | |
download | nixpkgs-43f83f9c456a3ed10ec5f30a8561b5fb179d53a6.tar nixpkgs-43f83f9c456a3ed10ec5f30a8561b5fb179d53a6.tar.gz nixpkgs-43f83f9c456a3ed10ec5f30a8561b5fb179d53a6.tar.bz2 nixpkgs-43f83f9c456a3ed10ec5f30a8561b5fb179d53a6.tar.lz nixpkgs-43f83f9c456a3ed10ec5f30a8561b5fb179d53a6.tar.xz nixpkgs-43f83f9c456a3ed10ec5f30a8561b5fb179d53a6.tar.zst nixpkgs-43f83f9c456a3ed10ec5f30a8561b5fb179d53a6.zip |
Merge pull request #75866 from Sohalt/spnav
libspnav: init at 2.3.0
Diffstat (limited to 'nixos/modules/services/hardware')
-rw-r--r-- | nixos/modules/services/hardware/spacenavd.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nixos/modules/services/hardware/spacenavd.nix b/nixos/modules/services/hardware/spacenavd.nix new file mode 100644 index 00000000000..7afae76cc4f --- /dev/null +++ b/nixos/modules/services/hardware/spacenavd.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"; + }; + }; + }; +} |