From 2fda9075b06512c5f47ca2a7c0187412504c1860 Mon Sep 17 00:00:00 2001 From: fruchti Date: Fri, 2 May 2025 18:19:26 +0200 Subject: [PATCH] Add udev rule for USB thermal printer --- base/hardware.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base/hardware.nix b/base/hardware.nix index d7f0905..bc59584 100644 --- a/base/hardware.nix +++ b/base/hardware.nix @@ -3,5 +3,8 @@ services.udev.extraRules = '' # Keychron C2 function key fix SUBSYSTEMS=="input", ATTRS{name}=="Keychron Keychron C2", RUN+="${pkgs.bash}/bin/bash -c 'echo 0 > /sys/module/hid_apple/parameters/fnmode'" + + # EM8026 thermal printer + SUBSYSTEM=="usb", ATTRS{idVendor}=="28e9", ATTRS{idProduct}=="0289", MODE="0660", GROUP="plugdev" ''; }