about summary refs log tree commit diff
path: root/nixos/modules/hardware
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/modules/hardware
parentc08d6d55dc9a899f11bff2c5d545b56577b9c949 (diff)
parent33f4d93e0308631255eb04629c28dab0acda50d3 (diff)
downloadnixlib-b94300945a0a43360c88dafea591e46bc30d5c08.tar
nixlib-b94300945a0a43360c88dafea591e46bc30d5c08.tar.gz
nixlib-b94300945a0a43360c88dafea591e46bc30d5c08.tar.bz2
nixlib-b94300945a0a43360c88dafea591e46bc30d5c08.tar.lz
nixlib-b94300945a0a43360c88dafea591e46bc30d5c08.tar.xz
nixlib-b94300945a0a43360c88dafea591e46bc30d5c08.tar.zst
nixlib-b94300945a0a43360c88dafea591e46bc30d5c08.zip
Merge pull request #75940 from davidtwco/wooting-init
wooting: init wootility, wooting-udev-rules and module
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 ];
+  };
+}