fix for my g5 dock

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2026-09-05 20:29:57 +02:00
parent 8e502f9701
commit b024ce0b4d
+8 -1
View File
@@ -1,5 +1,5 @@
# Audio configuration for NixOS using PipeWire # Audio configuration for NixOS using PipeWire
{ {pkgs, ...}: {
services.pipewire = { services.pipewire = {
enable = true; enable = true;
alsa.enable = true; alsa.enable = true;
@@ -8,4 +8,11 @@
jack.enable = true; jack.enable = true;
}; };
security.rtkit.enable = true; security.rtkit.enable = true;
environment.systemPackages = [pkgs.alsa-utils];
# Fix for the HP USB-C Dock G5's
services.udev.extraRules = ''
SUBSYSTEM=="sound", KERNEL=="controlC*", ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="056b", RUN+="${pkgs.bash}/bin/bash -c '${pkgs.alsa-utils}/bin/amixer -c $(echo %k | sed s/controlC//) sset Headphones unmute'"
'';
} }