bringing back hyprland
This commit is contained in:
1 parent
aa41228d27
commit
9d9a890877
43 files changed
+976
-1036
No files matched your search
@@ -0,0 +1,18 @@
|
||||
# modules/nixos/desktop/fixes/
|
||||
|
||||
Various workarounds and fixes for desktop/workstation issues.
|
||||
|
||||
## Files
|
||||
|
||||
```
|
||||
fixes/
|
||||
└── default.nix # skyg.nixos.desktop.fixes.airpod-bluetooth.enabled — AirPods distorted/robotic audio fix
|
||||
```
|
||||
|
||||
## Behaviour
|
||||
|
||||
### AirPods Bluetooth Audio Fix
|
||||
When `skyg.nixos.desktop.fixes.airpod-bluetooth.enabled` is set to `true`:
|
||||
- WirePlumber's auto-switching behavior is disabled for the AirPods.
|
||||
- Prevents switching from high-quality A2DP profile to low-quality HFP/HSP mono profile when a mic stream opens.
|
||||
- Dictates that AirPods stay in A2DP permanently, while meeting/chat apps fall back to the laptop's built-in mic for input.
|
||||
@@ -0,0 +1,31 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
cfg = config.skyg.nixos.desktop.fixes.airpod-bluetooth;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
skyg.nixos.desktop.fixes.airpod-bluetooth = {
|
||||
enabled = lib.mkEnableOption "Fix robotic/distorted audio with AirPods over Bluetooth";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf (cfg.enabled && config.skyg.nixos.desktop.enable) {
|
||||
# Fix robotic/distorted audio with AirPods over Bluetooth.
|
||||
# WirePlumber 0.5 (nixpkgs 26.05+) auto-switches BT devices from A2DP to
|
||||
# HFP whenever any app opens a mic stream (Chromium, Slack, etc.), which
|
||||
# degrades both speaker and mic quality to 8 kHz CVSD/mSBC and causes the
|
||||
# robotic sound. Disabling auto-switch keeps AirPods in A2DP permanently;
|
||||
# meeting apps fall back to the laptop's built-in mic for input.
|
||||
services.pipewire.wireplumber.extraConfig = {
|
||||
"51-airpods-bluetooth" = {
|
||||
"monitor.bluez.properties" = {
|
||||
"bluez5.msbc-support" = false;
|
||||
"bluez5.hfphsp-backend" = "native";
|
||||
};
|
||||
"wireplumber.settings" = {
|
||||
"bluetooth.autoswitch-to-headset-profile" = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user