aboutsummaryrefslogtreecommitdiff
path: root/hosts/nixos/wooting.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/nixos/wooting.nix')
-rw-r--r--hosts/nixos/wooting.nix7
1 files changed, 2 insertions, 5 deletions
diff --git a/hosts/nixos/wooting.nix b/hosts/nixos/wooting.nix
index 2a4b66c..e6217cd 100644
--- a/hosts/nixos/wooting.nix
+++ b/hosts/nixos/wooting.nix
@@ -1,11 +1,8 @@
{ config, lib, pkgs, ... }:
-let
- cfg = config.wooting;
-in {
+{
options.wooting.enable = lib.mkEnableOption "Enable Wooting udev rules";
-
- config = lib.mkIf cfg.enable {
+ config = lib.mkIf config.wooting.enable {
services.udev.extraRules = ''
# Wooting One Legacy
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="ff01", TAG+="uaccess"