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 = "内置麦克风" + } + } + } + ] + ''; +}