mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-10-05 11:18:24 +02:00
+8
-1
@@ -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'"
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user