summaryrefslogtreecommitdiff
path: root/modules/bluetooth.nix
diff options
context:
space:
mode:
authorSimon Parri <simonparri@ganzeria.com>2025-06-04 12:20:54 -0500
committerSimon Parri <simonparri@ganzeria.com>2025-06-04 12:20:54 -0500
commit1c19fbdd88b075c31bea3ca26d408da1ef3e637c (patch)
treec03055f0fe5e0365f217dd5811a6b99127bd4f4b /modules/bluetooth.nix
parent4b9b1e1bc5fbb55f350e3db586ebfeefc767099e (diff)
downloadnixos-config-1c19fbdd88b075c31bea3ca26d408da1ef3e637c.tar.gz
nixos-config-1c19fbdd88b075c31bea3ca26d408da1ef3e637c.zip
hosts/tomato: Add new bluetooth module and use it
Diffstat (limited to 'modules/bluetooth.nix')
-rw-r--r--modules/bluetooth.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/bluetooth.nix b/modules/bluetooth.nix
new file mode 100644
index 0000000..cf7cee5
--- /dev/null
+++ b/modules/bluetooth.nix
@@ -0,0 +1,16 @@
+{ lib, pkgs, config, ... }:
+
+let cfg = config.this.bluetooth;
+in
+{
+ options.this.bluetooth = {
+ enable = lib.mkEnableOption "bluetooth";
+ };
+
+ config = lib.mkIf cfg.enable {
+ hardware.bluetooth.enable = true;
+ environment.systemPackages = with pkgs; [
+ bluetuith
+ ];
+ };
+}