diff options
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/sif/default.nix | 41 |
1 files changed, 37 insertions, 4 deletions
diff --git a/hosts/sif/default.nix b/hosts/sif/default.nix index 1460ad2a..a74c9184 100644 --- a/hosts/sif/default.nix +++ b/hosts/sif/default.nix | |||
| @@ -325,15 +325,48 @@ in { | |||
| 325 | groups.plugdev = {}; | 325 | groups.plugdev = {}; |
| 326 | }; | 326 | }; |
| 327 | 327 | ||
| 328 | hardware = { | 328 | security.rtkit.enable = true; |
| 329 | pulseaudio = { | 329 | services.pipewire = { |
| 330 | enable = true; | ||
| 331 | alsa.enable = true; | ||
| 332 | alsa.support32Bit = true; | ||
| 333 | pulse.enable = true; | ||
| 334 | jack.enable = true; | ||
| 335 | |||
| 336 | media-session = { | ||
| 330 | enable = true; | 337 | enable = true; |
| 331 | package = with pkgs; pulseaudioFull; | 338 | config.bluez-monitor.rules = [ |
| 332 | support32Bit = true; | 339 | { # Matches all cards |
| 340 | matches = [ { "device.name" = "~bluez_card.*"; } ]; | ||
| 341 | actions = { | ||
| 342 | "update-props" = { | ||
| 343 | "bluez5.reconnect-profiles" = [ "hfp_hf" "hsp_hs" "a2dp_sink" ]; | ||
| 344 | # mSBC is not expected to work on all headset + adapter combinations. | ||
| 345 | "bluez5.msbc-support" = true; | ||
| 346 | }; | ||
| 347 | }; | ||
| 348 | } | ||
| 349 | { | ||
| 350 | matches = [ | ||
| 351 | # Matches all sources | ||
| 352 | { "node.name" = "~bluez_input.*"; } | ||
| 353 | # Matches all outputs | ||
| 354 | { "node.name" = "~bluez_output.*"; } | ||
| 355 | ]; | ||
| 356 | actions = { | ||
| 357 | "update-props" = { | ||
| 358 | "node.pause-on-idle" = false; | ||
| 359 | }; | ||
| 360 | }; | ||
| 361 | } | ||
| 362 | ]; | ||
| 333 | }; | 363 | }; |
| 364 | }; | ||
| 334 | 365 | ||
| 366 | hardware = { | ||
| 335 | bluetooth = { | 367 | bluetooth = { |
| 336 | enable = true; | 368 | enable = true; |
| 369 | package = pkgs.bluezFull; | ||
| 337 | settings = { | 370 | settings = { |
| 338 | General = { | 371 | General = { |
| 339 | Enable = "Source,Sink,Media,Socket"; | 372 | Enable = "Source,Sink,Media,Socket"; |
