From 045bc68fe21d7a42ffc9ed6870ef784ee6ba5fb9 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Tue, 3 Sep 2024 00:29:38 -0700 Subject: [PATCH] snowhawk: bluetooth audio --- hosts/snowhawk/hardware-configuration.nix | 1 + modules/audio.nix | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/snowhawk/hardware-configuration.nix b/hosts/snowhawk/hardware-configuration.nix index 5b8881e..f5e8903 100644 --- a/hosts/snowhawk/hardware-configuration.nix +++ b/hosts/snowhawk/hardware-configuration.nix @@ -103,6 +103,7 @@ package = config.boot.kernelPackages.nvidiaPackages.beta; }; + hardware.bluetooth.enable = true; swapDevices = [ ]; diff --git a/modules/audio.nix b/modules/audio.nix index 55f9b11..6f7660f 100644 --- a/modules/audio.nix +++ b/modules/audio.nix @@ -1,4 +1,4 @@ -{ lib, config, ... }: +{ lib, config, pkgs, ... }: let cfg = config.snowhawk.audio; @@ -11,6 +11,7 @@ in config = lib.mkIf cfg.enable { # Enable sound with pipewire. hardware.pulseaudio.enable = false; + hardware.pulseaudio.extraModules = [ pkgs.pulseaudio-modules-bt ]; security.rtkit.enable = true; services.pipewire = { enable = true;