diff options
author | David Wood <david@davidtw.co> | 2019-12-19 12:29:20 +0000 |
---|---|---|
committer | David Wood <david@davidtw.co> | 2019-12-19 15:49:19 +0000 |
commit | 33f4d93e0308631255eb04629c28dab0acda50d3 (patch) | |
tree | 47225db300a08b58b1cbc51a7880e1bef0c4f106 | |
parent | 47d402e4f70bc96daed0f8cc4bd9d94bea4cedce (diff) | |
download | nixpkgs-33f4d93e0308631255eb04629c28dab0acda50d3.tar nixpkgs-33f4d93e0308631255eb04629c28dab0acda50d3.tar.gz nixpkgs-33f4d93e0308631255eb04629c28dab0acda50d3.tar.bz2 nixpkgs-33f4d93e0308631255eb04629c28dab0acda50d3.tar.lz nixpkgs-33f4d93e0308631255eb04629c28dab0acda50d3.tar.xz nixpkgs-33f4d93e0308631255eb04629c28dab0acda50d3.tar.zst nixpkgs-33f4d93e0308631255eb04629c28dab0acda50d3.zip |
nixos/wooting: add `hardware.wooting` module
Signed-off-by: David Wood <david.wood@codeplay.com>
-rw-r--r-- | nixos/modules/hardware/wooting.nix | 12 | ||||
-rw-r--r-- | nixos/modules/module-list.nix | 1 |
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 3300848220a..886156a3e49 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -63,6 +63,7 @@ ./hardware/steam-hardware.nix ./hardware/usb-wwan.nix ./hardware/onlykey.nix + ./hardware/wooting.nix ./hardware/video/amdgpu.nix ./hardware/video/amdgpu-pro.nix ./hardware/video/ati.nix |