summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/gkleen@sif')
-rw-r--r--accounts/gkleen@sif/default.nix7
-rw-r--r--accounts/gkleen@sif/wireplumber/bluetooth.lua.d/50-bluez-config.lua20
-rw-r--r--accounts/gkleen@sif/wireplumber/main.lua.d/51-alsa-disable.lua12
3 files changed, 39 insertions, 0 deletions
diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix
index 61a5fdb4..84ac88a7 100644
--- a/accounts/gkleen@sif/default.nix
+++ b/accounts/gkleen@sif/default.nix
@@ -331,6 +331,13 @@ in {
331 ${pkgs.systemd}/bin/systemctl --user try-restart dunst 331 ${pkgs.systemd}/bin/systemctl --user try-restart dunst
332 ''; 332 '';
333 }; 333 };
334 "wireplumber" = {
335 source = ./wireplumber;
336 recursive = true;
337 onChange = ''
338 ${pkgs.systemd}/bin/systemctl --user try-restart wireplumber
339 '';
340 };
334 }; 341 };
335 342
336 fonts.fontconfig.enable = true; 343 fonts.fontconfig.enable = true;
diff --git a/accounts/gkleen@sif/wireplumber/bluetooth.lua.d/50-bluez-config.lua b/accounts/gkleen@sif/wireplumber/bluetooth.lua.d/50-bluez-config.lua
new file mode 100644
index 00000000..948b7dfa
--- /dev/null
+++ b/accounts/gkleen@sif/wireplumber/bluetooth.lua.d/50-bluez-config.lua
@@ -0,0 +1,20 @@
1rule = {
2 matches = {
3 {
4 { "device.name", "matches", "bluez_card.*" },
5 },
6 },
7 apply_properties = {
8 ["bluez5.auto-connect"] = "[ hfp_hf hsp_hs a2dp_sink ]",
9 },
10}
11
12table.insert(bluez_monitor.rules,rule)
13
14bluez_monitor.properties = {
15 ["bluez5.enable-msbc"] = true,
16 ["bluez5.enable-sbc-xq"] = true,
17 ["bluez5.enable-hw-volume"] = false,
18 ["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]",
19 ["bluez5.codecs"] = "[ sbc sbc_xq aac ldac aptx aptx_hd aptx_ll aptx_ll_duplex faststream faststream_duplex ]",
20}
diff --git a/accounts/gkleen@sif/wireplumber/main.lua.d/51-alsa-disable.lua b/accounts/gkleen@sif/wireplumber/main.lua.d/51-alsa-disable.lua
new file mode 100644
index 00000000..eafa6184
--- /dev/null
+++ b/accounts/gkleen@sif/wireplumber/main.lua.d/51-alsa-disable.lua
@@ -0,0 +1,12 @@
1rule = {
2 matches = {
3 {
4 { "device.name", "equals", "alsa_card.pci-0000_01_00.1" },
5 },
6 },
7 apply_properties = {
8 ["device.disabled"] = true,
9 },
10}
11
12table.insert(alsa_monitor.rules,rule)