.
This commit is contained in:
parent
6eade157b3
commit
7e402167b4
8 changed files with 32 additions and 46 deletions
|
@ -31,36 +31,5 @@ in
|
|||
support32Bit = true;
|
||||
};
|
||||
};
|
||||
|
||||
home.configFile = mkIf config.modules.hardware.bluetooth.enable {
|
||||
wireplumber-bluetooth = {
|
||||
target = "wireplumber/bluetooth.lua.d/51-bluez-config.lua";
|
||||
text = ''
|
||||
bluez_monitor.properties = {
|
||||
["bluez5.enable-sbc-xq"] = true,
|
||||
["bluez5.enable-msbc"] = true,
|
||||
["bluez5.enable-hw-volume"] = true,
|
||||
["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]"
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
||||
wireplumber-disable-suspension = {
|
||||
target = "wireplumber/main.lua.d/51-disable-suspension.lua";
|
||||
text = ''
|
||||
table.insert(alsa_monitor.rules, {
|
||||
matches = {
|
||||
{ -- Matches all sources.
|
||||
{ "node.name", "matches", "alsa_input.*" },
|
||||
},
|
||||
{ -- Matches all sinks.
|
||||
{ "node.name", "matches", "alsa_output.*" },
|
||||
},
|
||||
},
|
||||
apply_properties = { ["session.suspend-timeout-seconds"] = 0 },
|
||||
})
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue