nixpkgs/nixos/modules/hardware/wooting.nix
David Wood 33f4d93e03
nixos/wooting: add hardware.wooting module
Signed-off-by: David Wood <david.wood@codeplay.com>
2019-12-19 15:49:19 +00:00

13 lines
304 B
Nix

{ 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 ];
};
}