From 3febbcaef736b4738cabf1571723d6bb6367fd90 Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 12 Sep 2024 06:38:04 +0000 Subject: [PATCH] programs/via: make the udev config conditional upon via actually being installed --- hosts/common/programs/via.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/common/programs/via.nix b/hosts/common/programs/via.nix index ac9313ca6..55059fa0d 100644 --- a/hosts/common/programs/via.nix +++ b/hosts/common/programs/via.nix @@ -10,7 +10,7 @@ in enableFor.system = lib.mkIf (builtins.any (en: en) (builtins.attrValues cfg.enableFor.user)) true; }; services.udev.packages = lib.mkIf cfg.enabled [ cfg.package pkgs.qmk-udev-rules ]; - services.udev.extraRules = '' + services.udev.extraRules = lib.mkIf cfg.enabled '' # ZSA Ergodox Glow SUBSYSTEMS=="usb", ATTRS{idVendor}=="3297", ATTRS{idProduct}=="4976", TAG+="uaccess" '';