diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2020-03-22 02:03:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-22 02:03:52 -0400 |
commit | b94300945a0a43360c88dafea591e46bc30d5c08 (patch) | |
tree | a06f7c2d032419649de02c43bb73cf2f44d924fe /nixos/modules/hardware | |
parent | c08d6d55dc9a899f11bff2c5d545b56577b9c949 (diff) | |
parent | 33f4d93e0308631255eb04629c28dab0acda50d3 (diff) |
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.nix | 12 |
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 ]; + }; +} |