From 3eb39f90ec9ed6756c8523f71141cb95fffcde66 Mon Sep 17 00:00:00 2001 From: Alejandro Angulo Date: Thu, 13 Jul 2023 18:36:01 -0700 Subject: [PATCH] Added bluetooth support --- modules/hardware/bluetooth/default.nix | 20 ++++++++++++++++++++ systems/x86_64-linux/gospel/default.nix | 1 + 2 files changed, 21 insertions(+) create mode 100644 modules/hardware/bluetooth/default.nix diff --git a/modules/hardware/bluetooth/default.nix b/modules/hardware/bluetooth/default.nix new file mode 100644 index 0000000..69bc0c7 --- /dev/null +++ b/modules/hardware/bluetooth/default.nix @@ -0,0 +1,20 @@ +{ + options, + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.aa.hardware.bluetooth; +in { + options.aa.hardware.bluetooth = with types; { + enable = mkEnableOption "bluetooth"; + }; + + config = mkIf cfg.enable { + hardware.bluetooth.enable = true; + services.blueman.enable = true; + }; +} + diff --git a/systems/x86_64-linux/gospel/default.nix b/systems/x86_64-linux/gospel/default.nix index 6d8d825..c09729b 100644 --- a/systems/x86_64-linux/gospel/default.nix +++ b/systems/x86_64-linux/gospel/default.nix @@ -33,6 +33,7 @@ }; hardware.audio.enable = true; + hardware.bluetooth.enable = true; hardware.logitech.enable = true; system.zfs.enable = true;