add a bluetooth module

This commit is contained in:
Andreas Zweili 2021-11-24 20:54:11 +01:00
parent b1a83da4fc
commit 5233fb11f7
3 changed files with 25 additions and 0 deletions

View File

@ -8,6 +8,7 @@
imports =
[ # Include the results of the hardware scan.
../../common/desktop.nix
../bluetooth.nix
./hardware-configuration.nix
];

23
hardware/blueooth.nix Normal file
View File

@ -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;
};
}

View File

@ -8,6 +8,7 @@
imports =
[ # Include the results of the hardware scan.
../../common/desktop.nix
../bluetooth.nix
./hardware-configuration.nix
];