From 877cabbb42b4f90065663711fdcedf5da4c962b3 Mon Sep 17 00:00:00 2001 From: js0ny Date: Sun, 15 Mar 2026 21:49:09 +0000 Subject: [PATCH] dot(pw): mic name --- .../modules/nixos/desktop/host-machine.nix | 1 + nixcfgs/modules/nixos/hardware/pipewire.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 nixcfgs/modules/nixos/hardware/pipewire.nix diff --git a/nixcfgs/modules/nixos/desktop/host-machine.nix b/nixcfgs/modules/nixos/desktop/host-machine.nix index af2d1bb..43c2c84 100644 --- a/nixcfgs/modules/nixos/desktop/host-machine.nix +++ b/nixcfgs/modules/nixos/desktop/host-machine.nix @@ -2,6 +2,7 @@ imports = [ ./xremap.nix ./diskutil.nix + ../hardware/pipewire.nix ]; # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; diff --git a/nixcfgs/modules/nixos/hardware/pipewire.nix b/nixcfgs/modules/nixos/hardware/pipewire.nix new file mode 100644 index 0000000..bf60492 --- /dev/null +++ b/nixcfgs/modules/nixos/hardware/pipewire.nix @@ -0,0 +1,19 @@ +{...}: { + environment.etc."wireplumber/wireplumber.conf.d/51-rename-alsa-devices.conf".text = '' + + monitor.alsa.rules = [ + { + matches = [ + { + node.name = "alsa_input.pci-0000_65_00.6.analog-stereo" + } + ] + actions = { + update-props = { + node.description = "内置麦克风" + } + } + } + ] + ''; +}