summaryrefslogtreecommitdiffstats
path: root/nixos/modules/hardware
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2019-12-19 12:29:20 +0000
committerDavid Wood <david@davidtw.co>2019-12-19 15:49:19 +0000
commit33f4d93e0308631255eb04629c28dab0acda50d3 (patch)
tree47225db300a08b58b1cbc51a7880e1bef0c4f106 /nixos/modules/hardware
parent47d402e4f70bc96daed0f8cc4bd9d94bea4cedce (diff)
nixos/wooting: add `hardware.wooting` module
Signed-off-by: David Wood <david.wood@codeplay.com>
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r--nixos/modules/hardware/wooting.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/modules/hardware/wooting.nix b/nixos/modules/hardware/wooting.nix
new file mode 100644
index 000000000000..ee550cbbf6b8
--- /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 ];
+ };
+}