From 33f4d93e0308631255eb04629c28dab0acda50d3 Mon Sep 17 00:00:00 2001 From: David Wood Date: Thu, 19 Dec 2019 12:29:20 +0000 Subject: nixos/wooting: add `hardware.wooting` module Signed-off-by: David Wood --- nixos/modules/hardware/wooting.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 nixos/modules/hardware/wooting.nix (limited to 'nixos/modules/hardware') 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 ]; + }; +} -- cgit v1.2.3