From c149a39e3f6a5efc5fce1576889370a9f5946746 Mon Sep 17 00:00:00 2001 From: schererleander Date: Sun, 11 May 2025 17:05:11 +0200 Subject: chore, formatting --- hosts/nixos/wooting.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'hosts/nixos/wooting.nix') 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" -- cgit v1.3.1