summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-03-22 02:03:52 -0400
committerGitHub <noreply@github.com>2020-03-22 02:03:52 -0400
commitb94300945a0a43360c88dafea591e46bc30d5c08 (patch)
treea06f7c2d032419649de02c43bb73cf2f44d924fe /nixos
parentc08d6d55dc9a899f11bff2c5d545b56577b9c949 (diff)
parent33f4d93e0308631255eb04629c28dab0acda50d3 (diff)
downloadnixpkgs-b94300945a0a43360c88dafea591e46bc30d5c08.tar
nixpkgs-b94300945a0a43360c88dafea591e46bc30d5c08.tar.gz
nixpkgs-b94300945a0a43360c88dafea591e46bc30d5c08.tar.bz2
nixpkgs-b94300945a0a43360c88dafea591e46bc30d5c08.tar.lz
nixpkgs-b94300945a0a43360c88dafea591e46bc30d5c08.tar.xz
nixpkgs-b94300945a0a43360c88dafea591e46bc30d5c08.tar.zst
nixpkgs-b94300945a0a43360c88dafea591e46bc30d5c08.zip
Merge pull request #75940 from davidtwco/wooting-init
wooting: init wootility, wooting-udev-rules and module
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/hardware/wooting.nix12
-rw-r--r--nixos/modules/module-list.nix1
2 files changed, 13 insertions, 0 deletions
diff --git a/nixos/modules/hardware/wooting.nix b/nixos/modules/hardware/wooting.nix
new file mode 100644
index 00000000000..ee550cbbf6b
--- /dev/null
+++ b/nixos/modules/hardware/wooting.nix
@@ -0,0 +1,12 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+{
+  options.hardware.wooting.enable =
+    mkEnableOption "Enable support for Wooting keyboards";
+
+  config = mkIf config.hardware.wooting.enable {
+    environment.systemPackages = [ pkgs.wootility ];
+    services.udev.packages = [ pkgs.wooting-udev-rules ];
+  };
+}
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix
index 1ff5f5ff0c2..ccdc39eecd8 100644
--- a/nixos/modules/module-list.nix
+++ b/nixos/modules/module-list.nix
@@ -64,6 +64,7 @@
   ./hardware/tuxedo-keyboard.nix
   ./hardware/usb-wwan.nix
   ./hardware/onlykey.nix
+  ./hardware/wooting.nix
   ./hardware/video/amdgpu.nix
   ./hardware/video/amdgpu-pro.nix
   ./hardware/video/ati.nix