aboutsummaryrefslogtreecommitdiff
path: root/hosts/nixos/wooting.nix
diff options
context:
space:
mode:
authorschererleander <leander@schererleander.de>2025-05-11 17:05:11 +0200
committerschererleander <leander@schererleander.de>2025-05-11 17:05:11 +0200
commitc149a39e3f6a5efc5fce1576889370a9f5946746 (patch)
treee8ecb504a6b1764ea4a5dfccda2aae64aee95506 /hosts/nixos/wooting.nix
parentf6cf9bea4125ce0501c72374fa4ed82dc03d3147 (diff)
chore, formatting
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"