From 5233fb11f74b059bede368a15612bcea5c661a68 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Wed, 24 Nov 2021 20:54:11 +0100 Subject: [PATCH] add a bluetooth module --- hardware/asus/configuration.nix | 1 + hardware/blueooth.nix | 23 +++++++++++++++++++++++ hardware/xps5530/configuration.nix | 1 + 3 files changed, 25 insertions(+) create mode 100644 hardware/blueooth.nix diff --git a/hardware/asus/configuration.nix b/hardware/asus/configuration.nix index 7710b6b..9a004e6 100644 --- a/hardware/asus/configuration.nix +++ b/hardware/asus/configuration.nix @@ -8,6 +8,7 @@ imports = [ # Include the results of the hardware scan. ../../common/desktop.nix + ../bluetooth.nix ./hardware-configuration.nix ]; diff --git a/hardware/blueooth.nix b/hardware/blueooth.nix new file mode 100644 index 0000000..b674b64 --- /dev/null +++ b/hardware/blueooth.nix @@ -0,0 +1,23 @@ +# Edit this configuration file to define what should be installed on +# your system. Help is available in the configuration.nix(5) man page +# and in the NixOS manual (accessible by running ‘nixos-help’). + +{ config, pkgs, ... }: + +{ + # Blueooth support in general + hardware.bluetooth = { + enable = true; + powerOnBoot = false; + }; + + # Blueman applet + services.blueman.enable = true; + + # aptx/LDAC support + hardware.pulseaudio = { + extraModules = [ pkgs.pulseaudio-modules-bt ]; + package = pkgs.pulseaudioFull; + }; +} + diff --git a/hardware/xps5530/configuration.nix b/hardware/xps5530/configuration.nix index 2e01078..33908ae 100644 --- a/hardware/xps5530/configuration.nix +++ b/hardware/xps5530/configuration.nix @@ -8,6 +8,7 @@ imports = [ # Include the results of the hardware scan. ../../common/desktop.nix + ../bluetooth.nix ./hardware-configuration.nix ];